AccessReader IsAllowed use resolve (#8527)
This commit is contained in:
@@ -48,7 +48,7 @@ namespace Content.Server.Power.EntitySystems
|
||||
if (args.Session.AttachedEntity == null)
|
||||
return;
|
||||
|
||||
if (access == null || _accessReader.IsAllowed(access, args.Session.AttachedEntity.Value))
|
||||
if (access == null || _accessReader.IsAllowed(args.Session.AttachedEntity.Value, access))
|
||||
{
|
||||
ApcToggleBreaker(uid, component);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user