fixed the GetAuthorizedApps method
All checks were successful
Build and test backend / Build-backend (pull_request) Successful in 2m4s
Build and test backend / Test-backend (pull_request) Successful in 1m59s
Build and test FrontEnd / Build-frontend (pull_request) Successful in 24s

This commit is contained in:
Bartha Maxime 2024-03-16 00:42:46 +01:00
parent 1f14890d43
commit 0860567e1b

View File

@ -46,11 +46,12 @@ public class ApplicationsController {
authorizedApps.add(Applications.LOGIN);
authorizedApps.add(Applications.PROFILE);
if (posterRole == Role.Teacher || posterRole == Role.Student || posterRole == Role.Admin){
authorizedApps.add(Applications.MSG);
authorizedApps.add(Applications.FORUM);
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);
@ -58,5 +59,4 @@ public class ApplicationsController {
return authorizedApps;
}
}