Self editor redirect NIHVIVO-1102
This commit is contained in:
parent
06f13be16d
commit
f98b5edac5
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 ( Integer.toString(AuthRole.USER.level()) == user.getRoleURI() ) {
|
||||
if ( user != null && user.getRoleURI() != null && user.getRoleURI().equals( Integer.toString(AuthRole.USER.level()) )){
|
||||
UserDao userDao = getUserDao(request);
|
||||
if (userDao != null) {
|
||||
List<String> uris = userDao.getIndividualsUserMayEditAs(user
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue