Add Permissable interface for f perm compatibility.

Allows Roles and Relations to be permissable, so we can set f perms for both of those in the same map.
This commit is contained in:
Trent Hensler
2018-02-03 12:33:28 -08:00
parent 9e8205b5e2
commit 249770d2cd
6 changed files with 54 additions and 11 deletions

View File

@@ -38,7 +38,7 @@ public class FPromoteCommand extends FCommand {
return;
}
Access access = myFaction.getAccess(fme, Action.PROMOTE);
Access access = myFaction.getAccess(fme.getRole(), Action.PROMOTE);
// Well this is messy.
if (access == null || access == Access.UNDEFINED) {