Uploaded image for project: 'OpenOLAT'
  1. OpenOLAT
  2. OO-1049

Enable Openmeetings room configuration for course owners

    XMLWordPrintable

    Details

      Description

      This patch enables room configuration to owners without having the author role:

      diff -r bae0337bae9a src/main/java/org/olat/course/nodes/OpenMeetingsCourseNode.java
      --- a/src/main/java/org/olat/course/nodes/OpenMeetingsCourseNode.java	Fri Mar 28 14:30:18 2014 +0100
      +++ b/src/main/java/org/olat/course/nodes/OpenMeetingsCourseNode.java	Wed Apr 02 16:34:06 2014 +0200
      @@ -119,15 +119,12 @@
       			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
      

        Attachments

          Activity

            People

            Assignee:
            gnaegi Florian Gn├Ągi
            Reporter:
            stephan Stephan Clemenz
            Tester:
            Stephan Clemenz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 15 minutes
                15m