- Add wildcard attribute to permission nodes that are checked additionally in the permissions manager
This commit is contained in:
@@ -103,23 +103,13 @@ public enum AdminPermission implements PermissionNode {
|
||||
/**
|
||||
* Give access to all admin commands.
|
||||
*/
|
||||
ALL("authme.admin.*");
|
||||
ADMIN_ALL("authme.admin.*");
|
||||
|
||||
/**
|
||||
* Permission node.
|
||||
* The permission node.
|
||||
*/
|
||||
private String node;
|
||||
|
||||
/**
|
||||
* Get the permission node.
|
||||
*
|
||||
* @return Permission node.
|
||||
*/
|
||||
@Override
|
||||
public String getNode() {
|
||||
return node;
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
@@ -128,4 +118,14 @@ public enum AdminPermission implements PermissionNode {
|
||||
AdminPermission(String node) {
|
||||
this.node = node;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getNode() {
|
||||
return node;
|
||||
}
|
||||
|
||||
@Override
|
||||
public PermissionNode getWildcardNode() {
|
||||
return ADMIN_ALL;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user