Attempting to fix login redirect for self editors. NIHVIVO-1102
This commit is contained in:
parent
fa34bbf482
commit
0cb06a1615
1 changed files with 1 additions and 1 deletions
|
@ -395,7 +395,7 @@ public class Authenticate extends FreemarkerHttpServlet {
|
|||
|
||||
// If the user is a self-editor, send them to their home page.
|
||||
User user = getLoggedInUser(request);
|
||||
if (AuthRole.USER.roleUri().equals(user.getRoleURI())) {
|
||||
if ( Integer.toString(AuthRole.USER.level()) == user.getRoleURI() ) {
|
||||
UserDao userDao = getUserDao(request);
|
||||
if (userDao != null) {
|
||||
List<String> uris = userDao.getIndividualsUserMayEditAs(user
|
||||
|
|
Loading…
Add table
Reference in a new issue