This commit is contained in:
2025-11-03 11:54:07 +05:00
parent 870aba0bcf
commit 38b9908e1e
21 changed files with 150 additions and 75 deletions

View File

@@ -2,13 +2,13 @@
namespace App\Policies;
use Illuminate\Foundation\Auth\User as AuthUser;
use Illuminate\Auth\Access\HandlesAuthorization;
use Illuminate\Foundation\Auth\User as AuthUser;
class UserPolicy
{
use HandlesAuthorization;
public function viewAny(AuthUser $authUser): bool
{
return $authUser->can('ViewAny:User');
@@ -63,5 +63,4 @@ class UserPolicy
{
return $authUser->can('Reorder:User');
}
}
}