Use generated string for shiro permission

This commit is contained in:
René Pfeuffer
2018-10-01 16:16:44 +02:00
parent 1d5e0bdbc2
commit 1cc5368db4
3 changed files with 6 additions and 8 deletions

View File

@@ -265,7 +265,7 @@ public class DefaultAuthorizationCollector implements AuthorizationCollector
}
private String canReadOwnUser(User user) {
return "user:" + UserPermissions.ACTION_READ + ":" + user.getName();
return UserPermissions.read(user.getName()).asShiroString();
}
//~--- get methods ----------------------------------------------------------