27 lines
468 B
PHP
27 lines
468 B
PHP
<?php
|
|
|
|
namespace App\Policies;
|
|
|
|
use App\Models\EdiBand;
|
|
use App\Models\User;
|
|
use Illuminate\Auth\Access\Response;
|
|
|
|
class EdiBandPolicy
|
|
{
|
|
|
|
public function create(User $user): bool
|
|
{
|
|
return (bool) $user->is_admin;
|
|
}
|
|
|
|
public function update(User $user, EdiBand $edi_band): bool
|
|
{
|
|
return (bool) $user->is_admin;
|
|
}
|
|
|
|
public function delete(User $user, EdiBand $edi_band): bool
|
|
{
|
|
return (bool) $user->is_admin;
|
|
}
|
|
}
|