You've already forked Epicnabbo-Catalogus-Updated-Daily
37 lines
798 B
PHP
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');
|
|
}
|
|
}
|