As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
document.removePermission("Read"); document.removePermission("Write"); document.removePermission("Delete"); document.removePermission("AddChildren"); /* <– not sure about this */ document.setOwner("admin"); space.removePermission("Read");
space.removePermission("Read");
// Prevent public access to a document document.removePermission("Read"); document.removePermission("Write"); document.removePermission("Delete"); document.setInheritsPermissions(false); document.setOwner("admin");
document.setInheritsPermissions(false); document.setOwner("admin");
document.setInheritsPermissions(false); document.setOwner(editorInChief);
You do not have the appropriate permissions to perform this operation.
I changed my script and now it works: The space itself is "readable", but the documents are not.// Prevent public access to a document document.removePermission("Read"); document.removePermission("Write"); document.removePermission("Delete"); document.setInheritsPermissions(false); document.setOwner("admin");