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

OO-291: fix a part of the unit tests broken by the new grant "ACCESS" permission for authors

parent 281c228a
No related branches found
No related tags found
No related merge requests found
......@@ -624,12 +624,6 @@ public class CourseFactory extends BasicManager {
// set access configuration
re.setAccess(access);
course = openCourseEditSession(course.getResourceableId());
// create group management
CourseGroupManager cgm = course.getCourseEnvironment().getCourseGroupManager();
// import groups
cgm.importCourseBusinessGroups(courseExportData);
// create security group
SecurityGroup ownerGroup = securityManager.createAndPersistSecurityGroup();
......@@ -664,6 +658,13 @@ public class CourseFactory extends BasicManager {
securityManager.createAndPersistPolicy(participantGroup, Constants.PERMISSION_HASROLE, Constants.ORESOURCE_PARTICIPANT);
re.setParticipantGroup(participantGroup);
//import groups
course = openCourseEditSession(course.getResourceableId());
// create group management
CourseGroupManager cgm = course.getCourseEnvironment().getCourseGroupManager();
// import groups
cgm.importCourseBusinessGroups(courseExportData);
// deploy any referenced repository entries of the editor structure. This will also
// include any references in the run structure, since any node in the runstructure is also
// present in the editor structure.
......
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