From 2515371c8c0a22ee0e19d30c0d5de4201fb1df68 Mon Sep 17 00:00:00 2001 From: Simon <63975668+Simyon264@users.noreply.github.com> Date: Thu, 13 Feb 2025 09:20:13 +0100 Subject: [PATCH] Fix "Manage Laws" button appearing with insufficient permissions (#35120) --- Content.Server/Administration/Systems/AdminVerbSystem.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Content.Server/Administration/Systems/AdminVerbSystem.cs b/Content.Server/Administration/Systems/AdminVerbSystem.cs index 0640537f57..568e498ff0 100644 --- a/Content.Server/Administration/Systems/AdminVerbSystem.cs +++ b/Content.Server/Administration/Systems/AdminVerbSystem.cs @@ -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() { -- 2.51.2