Skip to content
Snippets Groups Projects
Commit 99f8484d authored by srosse's avatar srosse
Browse files

OO-1408: open coaching tool to user managers and administrators

parent 81562c8e
No related branches found
No related tags found
No related merge requests found
......@@ -47,7 +47,9 @@ public class CoachSiteDef extends AbstractSiteDefinition implements SiteDefiniti
|| (!ureq.getUserSession().getRoles().isGuestOnly()
&& !ureq.getUserSession().getRoles().isInvitee())) {
CoachingService coachingService = CoreSpringFactory.getImpl(CoachingService.class);
if(coachingService.isCoach(ureq.getIdentity())) {
if(ureq.getUserSession().getRoles().isOLATAdmin()
|| ureq.getUserSession().getRoles().isUserManager()
|| coachingService.isCoach(ureq.getIdentity())) {
return new CoachSite(this, ureq.getLocale());
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment