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

Survey not accessible with course auto booking

    XMLWordPrintable

    Details

      Description

      If a course is configured with free access method and auto booking surveys are not accessible, only after reloading the course. I figured out that repository security is not updated when checking auto booking in RepositoryEntryRuntimeController.

      I'm not 100% sure (side effects?) but this patch fixes the problem. There was also a problem that the updated repository security from doRun() was not used to load the rights.

      diff --git a/src/main/java/org/olat/repository/ui/RepositoryEntryRuntimeController.java b/src/main/java/org/olat/repository/ui/RepositoryEntryRuntimeController.java
      index fcdac14..133c536 100644
      --- a/src/main/java/org/olat/repository/ui/RepositoryEntryRuntimeController.java
      +++ b/src/main/java/org/olat/repository/ui/RepositoryEntryRuntimeController.java
      @@ -246,8 +246,8 @@
       		toolbarPanel.setShowCloseLink(!assessmentLock, !assessmentLock);
       		toolbarPanel.getBackLink().setEnabled(!assessmentLock);
       		putInitialPanel(toolbarPanel);
      -		doRun(ureq, reSecurity);
      -		loadRights(reSecurity);
      +		doRun(ureq, this.reSecurity);
      +		loadRights(this.reSecurity);
       		initToolbar();
       		
       		eventBus = ureq.getUserSession().getSingleUserEventCenter();
      @@ -906,6 +906,7 @@
       					ACResultAndSecurity autoResult = tryAutoBooking(ureq, acResult, security);
       					acResult = autoResult.getAcResult();
       					security = autoResult.getSecurity();
      +					loadRights(security);
       					if(acResult.isAccessible()) {
       						launchContent(ureq, security);
       					} else {
      

        Attachments

          Activity

            People

            Assignee:
            srosse Stéphane Rossé
            Reporter:
            stephan Stephan Clemenz
            Tester:
            Mandy Menzel
            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 - 10 minutes
                10m