-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 13.2.7, 14.0
-
Fix Version/s: 14.0.2
-
Component/s: Repository, Catalog, Learning resources
-
Labels:None
-
Funded by:
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 {