Files
Epicnabbo-Catalogus-Updated…/Updated_Cms/app/Policies/WebsiteSettingPolicy.php
T
Remco edfa042bdc 🆙 More fixes 🆙
2026-01-19 21:20:27 +01:00

37 lines
798 B
PHP

<?php
namespace App\Policies;
use App\Models\User;
use Illuminate\Auth\Access\HandlesAuthorization;
class WebsiteSettingPolicy
{
use HandlesAuthorization;
public function viewAny(User $user): bool
{
return hasHousekeepingPermission('manage_website_settings');
}
public function view(User $user): bool
{
return hasHousekeepingPermission('manage_website_settings');
}
public function create(User $user): bool
{
return hasHousekeepingPermission('manage_website_settings');
}
public function update(User $user): bool
{
return hasHousekeepingPermission('manage_website_settings');
}
public function delete(User $user): bool
{
return hasHousekeepingPermission('delete_website_settings');
}
}