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

OO-3578: fix imported glossary and shared folder via course import

marked as "deleted" (access = 0)
parent 58a74f7a
No related branches found
No related tags found
No related merge requests found
......@@ -339,7 +339,7 @@ public class CourseHandler implements RepositoryHandler {
RepositoryService repositoryService = CoreSpringFactory.getImpl(RepositoryService.class);
OLATResource ores = OLATResourceManager.getInstance().findOrPersistResourceable(resource);
RepositoryEntry importedRepositoryEntry = repositoryService.create(owner, null,
importExport.getResourceName(), importExport.getDisplayName(), importExport.getDescription(), ores, 0);
importExport.getResourceName(), importExport.getDisplayName(), importExport.getDescription(), ores, RepositoryEntry.ACC_OWNERS);
// set the new shared folder reference
CourseConfig courseConfig = course.getCourseEnvironment().getCourseConfig();
......@@ -373,7 +373,7 @@ public class CourseHandler implements RepositoryHandler {
OLATResource ores = OLATResourceManager.getInstance().findOrPersistResourceable(resource);
RepositoryEntry importedRepositoryEntry = repositoryService.create(owner,
null, importExport.getResourceName(), importExport.getDisplayName(), importExport.getDescription(), ores, 0);
null, importExport.getResourceName(), importExport.getDisplayName(), importExport.getDescription(), ores, RepositoryEntry.ACC_OWNERS);
// set the new glossary reference
CourseConfig courseConfig = course.getCourseEnvironment().getCourseConfig();
......
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