]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix "Manage Laws" button appearing with insufficient permissions (#35120)
authorSimon <63975668+Simyon264@users.noreply.github.com>
Thu, 13 Feb 2025 08:20:13 +0000 (09:20 +0100)
committerGitHub <noreply@github.com>
Thu, 13 Feb 2025 08:20:13 +0000 (09:20 +0100)
Content.Server/Administration/Systems/AdminVerbSystem.cs

index 0640537f57ecd93a1c4de1f40764ec59a299903a..568e498ff088e16e0ad5f53d6d0b6d88376fe19b 100644 (file)
@@ -370,7 +370,7 @@ namespace Content.Server.Administration.Systems
 
                 }
 
-                if (lawBoundComponent != null && target != null)
+                if (lawBoundComponent != null && target != null && _adminManager.HasAdminFlag(player, AdminFlags.Moderator))
                 {
                     args.Verbs.Add(new Verb()
                     {