Fix "Manage Laws" button appearing with insufficient permissions (#35120)

This commit is contained in:
Simon
2025-02-13 09:20:13 +01:00
committed by GitHub
parent 6fe531dcd1
commit 2515371c8c

View 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() args.Verbs.Add(new Verb()
{ {