fixed the GetAuthorizedApps method
This commit is contained in:
parent
1f14890d43
commit
0860567e1b
@ -46,11 +46,12 @@ public class ApplicationsController {
|
|||||||
|
|
||||||
authorizedApps.add(Applications.LOGIN);
|
authorizedApps.add(Applications.LOGIN);
|
||||||
authorizedApps.add(Applications.PROFILE);
|
authorizedApps.add(Applications.PROFILE);
|
||||||
|
|
||||||
|
if (posterRole == Role.Teacher || posterRole == Role.Student || posterRole == Role.Admin){
|
||||||
authorizedApps.add(Applications.MSG);
|
authorizedApps.add(Applications.MSG);
|
||||||
authorizedApps.add(Applications.FORUM);
|
authorizedApps.add(Applications.FORUM);
|
||||||
authorizedApps.add(Applications.RDV);
|
authorizedApps.add(Applications.RDV);
|
||||||
|
}
|
||||||
if (posterRole == Role.Student || posterRole == Role.Admin) return authorizedApps;
|
|
||||||
|
|
||||||
if (posterRole == Role.Teacher || posterRole == Role.Secretary || posterRole == Role.Admin) authorizedApps.add(Applications.MANAGECOURSES);
|
if (posterRole == Role.Teacher || posterRole == Role.Secretary || posterRole == Role.Admin) authorizedApps.add(Applications.MANAGECOURSES);
|
||||||
|
|
||||||
@ -58,5 +59,4 @@ public class ApplicationsController {
|
|||||||
|
|
||||||
return authorizedApps;
|
return authorizedApps;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user