AccessReader IsAllowed use resolve (#8527)
This commit is contained in:
@@ -217,9 +217,9 @@ public sealed class DoorSystem : SharedDoorSystem
|
||||
return AccessType switch
|
||||
{
|
||||
// Some game modes modify access rules.
|
||||
AccessTypes.AllowAllIdExternal => !isExternal || _accessReaderSystem.IsAllowed(access, user.Value),
|
||||
AccessTypes.AllowAllIdExternal => !isExternal || _accessReaderSystem.IsAllowed(user.Value, access),
|
||||
AccessTypes.AllowAllNoExternal => !isExternal,
|
||||
_ => _accessReaderSystem.IsAllowed(access, user.Value)
|
||||
_ => _accessReaderSystem.IsAllowed(user.Value, access)
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user