Compare commits
No commits in common. "53e478b05cf0f1127afb66e8bde137be3f7a709a" and "beba199f603c84e345593c608d4b798d5165ef66" have entirely different histories.
53e478b05c
...
beba199f60
@ -46,12 +46,11 @@ public class ApplicationsController {
|
|||||||
|
|
||||||
authorizedApps.add(Applications.Login);
|
authorizedApps.add(Applications.Login);
|
||||||
authorizedApps.add(Applications.Profile);
|
authorizedApps.add(Applications.Profile);
|
||||||
|
authorizedApps.add(Applications.Msg);
|
||||||
|
authorizedApps.add(Applications.Forum);
|
||||||
|
authorizedApps.add(Applications.Rdv);
|
||||||
|
|
||||||
if (posterRole == Role.Teacher || posterRole == Role.Student || posterRole == Role.Admin){
|
if (posterRole == Role.Student || posterRole == Role.Admin) return authorizedApps;
|
||||||
authorizedApps.add(Applications.Msg);
|
|
||||||
authorizedApps.add(Applications.Forum);
|
|
||||||
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);
|
||||||
|
|
||||||
@ -59,4 +58,5 @@ public class ApplicationsController {
|
|||||||
|
|
||||||
return authorizedApps;
|
return authorizedApps;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user