Compare commits
5 Commits
beba199f60
...
53e478b05c
Author | SHA1 | Date | |
---|---|---|---|
53e478b05c | |||
182be8ac7b | |||
abff9aef3a | |||
b7b2eafb93 | |||
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