]> git.localhorst.tv Git - alttp.git/blobdiff - app/Policies/RoundPolicy.php
round titles
[alttp.git] / app / Policies / RoundPolicy.php
index 083454a7fceb80c4a228410e9d1a1f781d4e128c..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);
        }
 
        /**