if statement in correct order
This commit is contained in:
parent
00b68aa5a9
commit
8ed76b80ab
@ -339,12 +339,15 @@ public class SciProApplication extends RepositoryApplication implements IThemabl
|
||||
@Override
|
||||
public Class<? extends Page> getHomePage() {
|
||||
|
||||
if (SciProSession.get().authorizedForRole(Roles.STUDENT) && SciProSession.get().hasActualRole(Roles.STUDENT)){
|
||||
if (SciProSession.get().authorizedForRole(Roles.ADMIN) && SciProSession.get().hasActualRole(Roles.ADMIN)){
|
||||
return ProjectStartPage.class;
|
||||
}
|
||||
if (SciProSession.get().authorizedForRole(Roles.EMPLOYEE) && SciProSession.get().hasActualRole(Roles.EMPLOYEE)){
|
||||
return SupervisorStartPage.class;
|
||||
}
|
||||
if (SciProSession.get().authorizedForRole(Roles.STUDENT) && SciProSession.get().hasActualRole(Roles.STUDENT)){
|
||||
return ProjectStartPage.class;
|
||||
}
|
||||
else {
|
||||
return HomePage.class;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user