login if statement bug fixed

This commit is contained in:
Fredrik Friis 2012-02-10 12:34:40 +09:00
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;