🆙 Added fixed cms

This commit is contained in:
Remco committed 2026-01-07 19:32:43 +01:00
1 parent fdb0dc276d
commit 711fa2c29e
3992 files changed
+183381

No files matched your search

+32
View File
@@ -0,0 +1,32 @@
<?php
namespace App\Policies;
use App\Models\User;
use Illuminate\Auth\Access\HandlesAuthorization;
use Illuminate\Auth\Access\Response;
class BanPolicy
{
use HandlesAuthorization;
/**
* Determine whether the user can view any models.
*
* @return Response|bool
*/
public function viewAny(User $user)
{
return hasHousekeepingPermission('manage_bans');
}
/**
* Determine whether the user can delete the model.
*
* @return Response|bool
*/
public function delete(User $user)
{
return hasHousekeepingPermission('manage_bans');
}
}