Fix "Manage Laws" button appearing with insufficient permissions (#35120)
This commit is contained in:
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user