Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
kristi11 committed Sep 18, 2024
1 parent 564cf6a commit 1c922d7
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
25 changes: 13 additions & 12 deletions app/Policies/UserPolicy.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace App\Policies;

use App\Models\User;

use Illuminate\Auth\Access\HandlesAuthorization;

class UserPolicy
Expand All @@ -12,7 +13,7 @@ class UserPolicy
/**
* Determine whether the user can view any models.
*
* @param User $user
* @param \App\Models\User $user
* @return bool
*/
public function viewAny(User $user): bool
Expand All @@ -23,7 +24,7 @@ public function viewAny(User $user): bool
/**
* Determine whether the user can view the model.
*
* @param User $user
* @param \App\Models\User $user
* @return bool
*/
public function view(User $user): bool
Expand All @@ -34,7 +35,7 @@ public function view(User $user): bool
/**
* Determine whether the user can create models.
*
* @param User $user
* @param \App\Models\User $user
* @return bool
*/
public function create(User $user): bool
Expand All @@ -45,7 +46,7 @@ public function create(User $user): bool
/**
* Determine whether the user can update the model.
*
* @param User $user
* @param \App\Models\User $user
* @return bool
*/
public function update(User $user): bool
Expand All @@ -56,7 +57,7 @@ public function update(User $user): bool
/**
* Determine whether the user can delete the model.
*
* @param User $user
* @param \App\Models\User $user
* @return bool
*/
public function delete(User $user): bool
Expand All @@ -67,7 +68,7 @@ public function delete(User $user): bool
/**
* Determine whether the user can bulk delete.
*
* @param User $user
* @param \App\Models\User $user
* @return bool
*/
public function deleteAny(User $user): bool
Expand All @@ -78,7 +79,7 @@ public function deleteAny(User $user): bool
/**
* Determine whether the user can permanently delete.
*
* @param User $user
* @param \App\Models\User $user
* @return bool
*/
public function forceDelete(User $user): bool
Expand All @@ -89,7 +90,7 @@ public function forceDelete(User $user): bool
/**
* Determine whether the user can permanently bulk delete.
*
* @param User $user
* @param \App\Models\User $user
* @return bool
*/
public function forceDeleteAny(User $user): bool
Expand All @@ -100,7 +101,7 @@ public function forceDeleteAny(User $user): bool
/**
* Determine whether the user can restore.
*
* @param User $user
* @param \App\Models\User $user
* @return bool
*/
public function restore(User $user): bool
Expand All @@ -111,7 +112,7 @@ public function restore(User $user): bool
/**
* Determine whether the user can bulk restore.
*
* @param User $user
* @param \App\Models\User $user
* @return bool
*/
public function restoreAny(User $user): bool
Expand All @@ -122,7 +123,7 @@ public function restoreAny(User $user): bool
/**
* Determine whether the user can bulk restore.
*
* @param User $user
* @param \App\Models\User $user
* @return bool
*/
public function replicate(User $user): bool
Expand All @@ -133,7 +134,7 @@ public function replicate(User $user): bool
/**
* Determine whether the user can reorder.
*
* @param User $user
* @param \App\Models\User $user
* @return bool
*/
public function reorder(User $user): bool
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1c922d7

Please sign in to comment.