Login Finished, add curricula and apps
This commit is contained in:
		| @ -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; | ||||
|     } | ||||
| } | ||||
|  | ||||
| @ -15,7 +15,9 @@ public enum Applications { | ||||
|  | ||||
|     // teachers and Secretary authorization | ||||
|     ManageCourses, | ||||
|     UsersList, | ||||
|  | ||||
|     // InscriptionService authorization | ||||
|     Inscription | ||||
|     Inscription, | ||||
|     StudentsList | ||||
| } | ||||
|  | ||||
		Reference in New Issue
	
	Block a user