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

@@ -4,14 +4,14 @@ declare(strict_types=1);
namespace App\Modules\Branch\Policies;
use Illuminate\Foundation\Auth\User as AuthUser;
use App\Modules\Branch\Models\Branch;
use Illuminate\Auth\Access\HandlesAuthorization;
use Illuminate\Foundation\Auth\User as AuthUser;
class BranchPolicy
{
use HandlesAuthorization;
public function viewAny(AuthUser $authUser): bool
{
return $authUser->can('ViewAny:Branch');
@@ -66,5 +66,4 @@ class BranchPolicy
{
return $authUser->can('Reorder:Branch');
}
}
}