Revert "Access check updated"

This reverts commit 6eccfa84f1.
This commit is contained in:
ProSavage
2018-09-04 18:13:50 -05:00
parent ff59fd50cc
commit 99a747adcb
3 changed files with 11 additions and 14 deletions

View File

@@ -50,7 +50,7 @@ public abstract class FCommand extends MCommand<P> {
if (this.actionPermission == null || this.fme == null) return false;
if (!this.fme.isAdminBypassing()) {
Access access = myFaction.getAccess(this.fme, this.actionPermission);
if (access == Access.DENY) {
if (access != Access.ALLOW && this.fme.getRole() != Role.ADMIN) {
return false;
}
}
@@ -60,7 +60,7 @@ public abstract class FCommand extends MCommand<P> {
if (this.actionPermission == null || this.fme == null) return false;
if (!this.fme.isAdminBypassing() && checkifAdmin) {
Access access = myFaction.getAccess(this.fme, this.actionPermission);
if (access == Access.DENY) {
if (access != Access.ALLOW && this.fme.getRole() != Role.ADMIN) {
return false;
}
}
@@ -70,7 +70,7 @@ public abstract class FCommand extends MCommand<P> {
if (this.permission == null || this.fme == null) return false;
if (!this.fme.isAdminBypassing()) {
Access access = myFaction.getAccess(this.fme, perm);
if (access == Access.DENY) {
if (access != Access.ALLOW && this.fme.getRole() != Role.ADMIN) {
return false;
}
}
@@ -80,7 +80,7 @@ public abstract class FCommand extends MCommand<P> {
if (this.permission == null || this.fme == null) return false;
if (!this.fme.isAdminBypassing() && checkifAdmin) {
Access access = myFaction.getAccess(this.fme, perm);
if (access == Access.DENY) {
if (access != Access.ALLOW && this.fme.getRole() != Role.ADMIN) {
return false;
}
}