mirror of
https://github.com/brufdev/many-notes.git
synced 2026-05-20 09:19:15 -05:00
19 lines
281 B
PHP
19 lines
281 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Policies;
|
|
|
|
use App\Models\User;
|
|
|
|
final readonly class SettingPolicy
|
|
{
|
|
/**
|
|
* Determine whether the user can update the model.
|
|
*/
|
|
public function update(User $user): bool
|
|
{
|
|
return $user->isAdmin();
|
|
}
|
|
}
|