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

OO-291: fix a red screen in Members course building block

parent c0ccc6a8
No related branches found
No related tags found
No related merge requests found
...@@ -115,10 +115,9 @@ public class MembersCourseNodeRunController extends FormBasicController { ...@@ -115,10 +115,9 @@ public class MembersCourseNodeRunController extends FormBasicController {
ICourse course = CourseFactory.loadCourse(courseResId); ICourse course = CourseFactory.loadCourse(courseResId);
RepositoryEntry courseRepositoryEntry = rm.lookupRepositoryEntry(course, true); RepositoryEntry courseRepositoryEntry = rm.lookupRepositoryEntry(course, true);
List<Identity> owners = securityManager.getIdentitiesOfSecurityGroup(courseRepositoryEntry.getOwnerGroup()); List<Identity> owners = securityManager.getIdentitiesOfSecurityGroup(courseRepositoryEntry.getOwnerGroup());
List<Identity> coaches = cgm.getCoachesFromBusinessGroups(); List<Identity> coaches = new ArrayList<Identity>(cgm.getCoachesFromBusinessGroups());
//fxdiff VCRP-1,2: access control of resources
coaches.addAll(cgm.getCoaches()); coaches.addAll(cgm.getCoaches());
List<Identity> participants = cgm.getParticipantsFromBusinessGroups(); List<Identity> participants = new ArrayList<Identity>(cgm.getParticipantsFromBusinessGroups());
participants.addAll(cgm.getParticipants()); participants.addAll(cgm.getParticipants());
Comparator<Identity> idComparator = new IdentityComparator(); Comparator<Identity> idComparator = new IdentityComparator();
Collections.sort(owners, idComparator); Collections.sort(owners, idComparator);
......
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