1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-09-30 16:19:11 +02:00

Prototype for grouping permissions into an enum

This commit is contained in:
snowleo
2012-01-02 23:45:50 +01:00
parent b3de4276bc
commit d2c1b24e4b
3 changed files with 35 additions and 0 deletions

View File

@@ -86,6 +86,11 @@ public class User extends UserBase implements IUser
return ess.getPermissionsHandler().hasPermission(base, node);
}
public boolean isAuthorized(IPermission permission)
{
return isAuthorized(permission.getPermission());
}
@Override
public boolean isAuthorized(IEssentialsCommand cmd)