Commit 10db0f8a authored by Piotr Gawron's avatar Piotr Gawron
Browse files

additional check user privilege function added

parent 21b29ecb
......@@ -558,4 +558,9 @@ public class UserService implements IUserService {
AuthenticationToken token = getToken(tokenString);
logout(token);
}
@Override
public boolean userHasPrivilege(AuthenticationToken token, PrivilegeType type) {
return userHasPrivilege(getUserByToken(token), type);
}
}
......@@ -253,4 +253,6 @@ public interface IUserService {
void logout(String tokenString) throws SecurityException;
void logout(AuthenticationToken token);
boolean userHasPrivilege(AuthenticationToken token, PrivilegeType addMap);
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment