Skip to content
Snippets Groups Projects
Commit 6259cc47 authored by Wei Liu's avatar Wei Liu
Browse files

fixed permission error when trying to check parent path when the parent is...

fixed permission error when trying to check parent path when the parent is /projects collection asset.
parent 4e5f5b40
No related merge requests found
...@@ -128,7 +128,9 @@ public class CollectionPath { ...@@ -128,7 +128,9 @@ public class CollectionPath {
} }
public synchronized CollectionDetails createIfNotExist(MFSession session, boolean createParents) throws Throwable { public synchronized CollectionDetails createIfNotExist(MFSession session, boolean createParents) throws Throwable {
CollectionUtils.createCollection(_path, createParents, true, session); if(!exists(session)) {
CollectionUtils.createCollection(_path, createParents, true, session);
}
return resolve(session, true); return resolve(session, true);
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment