Files
Epicnabbo-Catalogus-Updated…/cms update/app/Policies/BanPolicy.php
T
Remco b67e0ec2b9 🆙 Add fixed cms 🆙
2026-02-02 19:30:21 +01:00

33 lines
624 B
PHP

<?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');
}
}