1
0
forked from PGL/Clyde

Login Finished, add curricula and apps

This commit is contained in:
2024-03-17 13:24:24 +01:00
parent 5a7934b2a3
commit b67b25b4a4
7 changed files with 51 additions and 16 deletions

View File

@ -61,10 +61,17 @@ public class ApplicationsController {
authorizedApps.add(Applications.Rdv);
}
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);
}
if (posterRole == Role.InscriptionService || posterRole == Role.Admin) authorizedApps.add(Applications.Inscription);
if (posterRole == Role.InscriptionService || posterRole == Role.Admin) {
authorizedApps.add(Applications.Inscription);
authorizedApps.add(Applications.StudentsList);
}
if (posterRole == Role.Secretary || posterRole == Role.Admin){
authorizedApps.add(Applications.UsersList);}
return authorizedApps;
}
}

View File

@ -15,7 +15,9 @@ public enum Applications {
// teachers and Secretary authorization
ManageCourses,
UsersList,
// InscriptionService authorization
Inscription
Inscription,
StudentsList
}