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
RunMainController run = getRunMainController();
if(run != null) {
addCustomCSS(ureq);
run.toolCtrDone(ureq);
run.toolCtrDone(ureq, reSecurity);
currentToolCtr = null;
}
}
......
......@@ -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) {
isInEditor = false; // for clarity
if (needsRebuildAfterPublish) {
......@@ -520,9 +520,7 @@ public class RunMainController extends MainLayoutBasicController implements Gene
// rebuild up the running structure for this user, after publish;
course = CourseFactory.loadCourse(course.getResourceableId());
uce = new UserCourseEnvironmentImpl(ureq.getUserSession().getIdentityEnvironment(), course.getCourseEnvironment(), getWindowControl(),
uce.getCoachedGroups(), uce.getParticipatingGroups(), uce.getWaitingLists(),
null, null, null);
uce = loadUserCourseEnvironment(ureq, reSecurity);
// build score now
uce.getScoreAccounting().evaluateAll();
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