40 lines
761 B
PHP
40 lines
761 B
PHP
<?php
|
|
|
|
namespace App\Policies;
|
|
|
|
use App\Models\EquipmentCategory;
|
|
use App\Models\User;
|
|
|
|
class EquipmentCategoryPolicy
|
|
{
|
|
public function before(User $user, string $ability): bool|null
|
|
{
|
|
return $user->isAdmin() ? true : null;
|
|
}
|
|
|
|
public function viewAny(User $user): bool
|
|
{
|
|
return false;
|
|
}
|
|
|
|
public function view(User $user, EquipmentCategory $equipmentCategory): bool
|
|
{
|
|
return false;
|
|
}
|
|
|
|
public function create(User $user): bool
|
|
{
|
|
return false;
|
|
}
|
|
|
|
public function update(User $user, EquipmentCategory $equipmentCategory): bool
|
|
{
|
|
return false;
|
|
}
|
|
|
|
public function delete(User $user, EquipmentCategory $equipmentCategory): bool
|
|
{
|
|
return false;
|
|
}
|
|
}
|