Files
vkv/app/Policies/RoundPolicy.php
Zdeněk Burda 41e3ce6f25 Initial commit
2026-01-09 21:26:40 +01:00

26 lines
453 B
PHP

<?php
namespace App\Policies;
use App\Models\Round;
use App\Models\User;
use Illuminate\Auth\Access\Response;
class RoundPolicy
{
public function create(User $user): bool
{
return (bool) $user->is_admin;
}
public function update(User $user, Round $round): bool
{
return (bool) $user->is_admin;
}
public function delete(User $user, Round $round): bool
{
return (bool) $user->is_admin;
}
}