]> git.localhorst.tv Git - alttp.git/blobdiff - app/Policies/RoundPolicy.php
lock rounds
[alttp.git] / app / Policies / RoundPolicy.php
index 1e29803d24764f258b311c806c9456c98a064b57..7ea3cacb8544a31cc65e90e3fbdac9f2e40a70ef 100644 (file)
@@ -101,6 +101,6 @@ class RoundPolicy
         */
        public function setSeed(User $user, Round $round)
        {
-               return $user->role === 'admin' || $user->isParticipant($round->tournament);
+               return $user->role === 'admin' || ($user->isParticipant($round->tournament) && !$round->locked);
        }
 }