made if statement into if else statement
This commit is contained in:
parent
2c2c7fdcac
commit
6137c285c5
@ -342,13 +342,13 @@ public class SciProApplication extends RepositoryApplication implements IThemabl
|
||||
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)){
|
||||
else if (SciProSession.get().authorizedForRole(Roles.ADMIN) && SciProSession.get().hasActualRole(Roles.ADMIN)){
|
||||
return AdminStartPage.class;
|
||||
}
|
||||
if (SciProSession.get().authorizedForRole(Roles.EMPLOYEE) && SciProSession.get().hasActualRole(Roles.EMPLOYEE)){
|
||||
else 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)){
|
||||
else if (SciProSession.get().authorizedForRole(Roles.STUDENT) && SciProSession.get().hasActualRole(Roles.STUDENT)){
|
||||
return ProjectStartPage.class;
|
||||
}
|
||||
else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user