Skip to content
Snippets Groups Projects
Commit 9e0fda60 authored by srosse's avatar srosse
Browse files

OO-2121: reload the whole set of permissions

parent 660cbb3b
No related branches found
No related tags found
No related merge requests found
...@@ -325,7 +325,7 @@ public class CourseRuntimeController extends RepositoryEntryRuntimeController im ...@@ -325,7 +325,7 @@ public class CourseRuntimeController extends RepositoryEntryRuntimeController im
RunMainController run = getRunMainController(); RunMainController run = getRunMainController();
if(run != null) { if(run != null) {
addCustomCSS(ureq); addCustomCSS(ureq);
run.toolCtrDone(ureq); run.toolCtrDone(ureq, reSecurity);
currentToolCtr = null; currentToolCtr = null;
} }
} }
......
...@@ -512,7 +512,7 @@ public class RunMainController extends MainLayoutBasicController implements Gene ...@@ -512,7 +512,7 @@ public class RunMainController extends MainLayoutBasicController implements Gene
} }
} }
protected void toolCtrDone(UserRequest ureq) { protected void toolCtrDone(UserRequest ureq, RepositoryEntrySecurity reSecurity) {
if (isInEditor) { if (isInEditor) {
isInEditor = false; // for clarity isInEditor = false; // for clarity
if (needsRebuildAfterPublish) { if (needsRebuildAfterPublish) {
...@@ -520,9 +520,7 @@ public class RunMainController extends MainLayoutBasicController implements Gene ...@@ -520,9 +520,7 @@ public class RunMainController extends MainLayoutBasicController implements Gene
// rebuild up the running structure for this user, after publish; // rebuild up the running structure for this user, after publish;
course = CourseFactory.loadCourse(course.getResourceableId()); course = CourseFactory.loadCourse(course.getResourceableId());
uce = new UserCourseEnvironmentImpl(ureq.getUserSession().getIdentityEnvironment(), course.getCourseEnvironment(), getWindowControl(), uce = loadUserCourseEnvironment(ureq, reSecurity);
uce.getCoachedGroups(), uce.getParticipatingGroups(), uce.getWaitingLists(),
null, null, null);
// build score now // build score now
uce.getScoreAccounting().evaluateAll(); uce.getScoreAccounting().evaluateAll();
navHandler = new NavigationHandler(uce, treeFilter, false); navHandler = new NavigationHandler(uce, treeFilter, false);
......
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