Revert "And I did it again"

This reverts commit 9ce8467224.
This commit is contained in:
ProSavage 2018-09-08 17:26:50 -05:00
parent e1a51b9488
commit 9a773702eb
2 changed files with 2 additions and 2 deletions

View File

@ -47,9 +47,9 @@ public abstract class FCommand extends MCommand<P> {
}
public boolean hasAccess() {
if (this.actionPermission == null || this.fme == null) return false;
if (this.permission == null || this.fme == null) return false;
if (!this.fme.isAdminBypassing()) {
Access access = myFaction.getAccess(this.fme, this.actionPermission);
Access access = myFaction.getAccess(this.fme, permission);
if (access != Access.ALLOW && this.fme.getRole() != Role.ADMIN) {
return false;
}