X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=app%2FPolicies%2FRoundPolicy.php;h=1f872c57bf054edaaf7de6fbba5ea60857c1e40b;hb=HEAD;hp=ec71a890802fa21d7caf5e81a458daf89a170cf0;hpb=eca3f0074e6f9e882b91893e554ce249e25338de;p=alttp.git diff --git a/app/Policies/RoundPolicy.php b/app/Policies/RoundPolicy.php index ec71a89..1f872c5 100644 --- a/app/Policies/RoundPolicy.php +++ b/app/Policies/RoundPolicy.php @@ -53,7 +53,7 @@ class RoundPolicy */ public function update(User $user, Round $round) { - return false; + return !$round->tournament->locked && $user->isTournamentAdmin($round->tournament); } /** @@ -105,7 +105,6 @@ class RoundPolicy $round->locked || ($user && $user->hasFinished($round)) || ($user && $user->isTournamentMonitor($round->tournament)) || - ($user && $user->isTournamentAdmin($round->tournament) && !$user->isRunner($round->tournament)) || $round->isComplete(); }