From: Simon <63975668+Simyon264@users.noreply.github.com> Date: Thu, 13 Feb 2025 08:20:13 +0000 (+0100) Subject: Fix "Manage Laws" button appearing with insufficient permissions (#35120) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=2515371c8c0a22ee0e19d30c0d5de4201fb1df68;p=space-station-14.git Fix "Manage Laws" button appearing with insufficient permissions (#35120) --- 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() {