Skip to content
Snippets Groups Projects
Commit 37afc19f authored by uhensler's avatar uhensler
Browse files

OO-4285: Coach should have not admin rights in manual scoring view

parent 0a5fe1d3
No related branches found
No related tags found
No related merge requests found
...@@ -67,8 +67,7 @@ public class MSCoachRunController extends BasicController { ...@@ -67,8 +67,7 @@ public class MSCoachRunController extends BasicController {
RepositoryEntry courseEntry = userCourseEnv.getCourseEnvironment().getCourseGroupManager().getCourseEntry(); RepositoryEntry courseEntry = userCourseEnv.getCourseEnvironment().getCourseGroupManager().getCourseEntry();
RepositoryEntrySecurity reSecurity = repositoryManager.isAllowed(ureq, courseEntry); RepositoryEntrySecurity reSecurity = repositoryManager.isAllowed(ureq, courseEntry);
boolean admin = reSecurity.isEntryAdmin() || reSecurity.isPrincipal() || reSecurity.isMasterCoach() boolean admin = userCourseEnv.isAdmin() || hasAssessmentRight;
|| hasAssessmentRight;
boolean nonMembers = reSecurity.isEntryAdmin(); boolean nonMembers = reSecurity.isEntryAdmin();
List<BusinessGroup> coachedGroups = null; List<BusinessGroup> coachedGroups = null;
......
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