login if statement bug fixed
This commit is contained in:
parent
0fb46d158c
commit
2c2c7fdcac
@ -339,8 +339,11 @@ public class SciProApplication extends RepositoryApplication implements IThemabl
|
||||
@Override
|
||||
public Class<? extends Page> getHomePage() {
|
||||
|
||||
if (SciProSession.get().authorizedForRole(Roles.SYSADMIN) && SciProSession.get().hasActualRole(Roles.SYSADMIN)){
|
||||
return AdminStartPage.class;
|
||||
}
|
||||
if (SciProSession.get().authorizedForRole(Roles.ADMIN) && SciProSession.get().hasActualRole(Roles.ADMIN)){
|
||||
return ProjectStartPage.class;
|
||||
return AdminStartPage.class;
|
||||
}
|
||||
if (SciProSession.get().authorizedForRole(Roles.EMPLOYEE) && SciProSession.get().hasActualRole(Roles.EMPLOYEE)){
|
||||
return SupervisorStartPage.class;
|
||||
|
Loading…
x
Reference in New Issue
Block a user