Skip to content
Snippets Groups Projects
Commit 10db0f8a authored by Piotr Gawron's avatar Piotr Gawron
Browse files

additional check user privilege function added

parent 21b29ecb
No related branches found
No related tags found
1 merge request!5Frontend refactor
......@@ -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);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment