]> git.localhorst.tv Git - alttp.git/blobdiff - app/Policies/RoundPolicy.php
respond to whispers
[alttp.git] / app / Policies / RoundPolicy.php
index ec71a890802fa21d7caf5e81a458daf89a170cf0..1f872c57bf054edaaf7de6fbba5ea60857c1e40b 100644 (file)
@@ -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();
        }