Skip to content
Snippets Groups Projects
Commit fad93e5d authored by gnaegi's avatar gnaegi
Browse files

OO-1049 grand admin/moderator rights also to co authors for open meeting...

OO-1049 grand admin/moderator rights also to co authors for open meeting course elements (patch from Stephan Clemenz)
parent 0435c86a
No related branches found
No related tags found
No related merge requests found
......@@ -119,15 +119,12 @@ public class OpenMeetingsCourseNode extends AbstractAccessableCourseNode {
ICourse course = CourseFactory.loadCourse(resourceId);
RepositoryManager rm = RepositoryManager.getInstance();
RepositoryEntry re = rm.lookupRepositoryEntry(course, false);
if(roles.isInstitutionalResourceManager() || roles.isAuthor()) {
if (re != null) {
admin = rm.isOwnerOfRepositoryEntry(ureq.getIdentity(), re)
|| rm.isInstitutionalRessourceManagerFor(re, ureq.getIdentity());
}
if (re != null) {
admin = rm.isOwnerOfRepositoryEntry(ureq.getIdentity(), re)
|| rm.isInstitutionalRessourceManagerFor(re, ureq.getIdentity());
moderator = admin || rm.isIdentityInTutorSecurityGroup(ureq.getIdentity(), re.getOlatResource())
|| isCoach(re, ureq.getIdentity());
}
moderator = admin
|| rm.isIdentityInTutorSecurityGroup(ureq.getIdentity(), re.getOlatResource())
|| isCoach(re, ureq.getIdentity());
}
// create run controller
......
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