Allow people with permission to manage access to deny themselves access. How else should these people feel confident they can setup the access correctly? Personally my reaction was to try to deny myself and I was confused when I couldnt.
This commit is contained in:
parent
cea9a85f2b
commit
3a6bca872f
@ -258,8 +258,7 @@ public class TerritoryAccess
|
||||
// this should normally only be checked after running subjectHasAccess() or fPlayerHasAccess() above to see if they have access explicitly granted
|
||||
public boolean subjectAccessIsRestricted(Object testSubject)
|
||||
{
|
||||
Faction hostFaction = FactionColls.get().get(testSubject).get(this.getHostFactionId());
|
||||
return ( ! this.isHostFactionAllowed() && this.doesHostFactionMatch(testSubject) && ! FPerm.ACCESS.has(testSubject, hostFaction, false));
|
||||
return (!this.isHostFactionAllowed() && this.doesHostFactionMatch(testSubject));
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user