I'm trying to use the JavaScript actions API to remove the cutoff on a record folder, and reopen the folder. A snippet of the code:
| var uncutoffAction = actions.create("unCutoff"); |
| var openFolderAction = actions.create("openRecordFolder"); |
| uncutoffAction.execute(matches[0].nodeRef); |
| openFolderAction.execute(matches[0].nodeRef); |
This returns the following error:
2016-10-26 14:03:21,021 ERROR [extensions.webscripts.AbstractRuntime] [http-apr-8080-exec-175] Exception from executeScript - redirecting to status template error: 09262202 Failed to execute script 'workspace://SpacesStore/c398238a-138a-4917-b4db-0376da8671a6': 09262201 The user geofa does not have the permission to remove the protected aspect rma:cutOff from the node workspace://SpacesStore/e7abcb78-04bb-4e5b-ab82-e511d39bac69
org.alfresco.scripts.ScriptException: 09262202 Failed to execute script 'workspace://SpacesStore/c398238a-138a-4917-b4db-0376da8671a6': 09262201 The user geofa does not have the permission to remove the protected aspect rma:cutOff from the node workspace://SpacesStore/e7abcb78-04bb-4e5b-ab82-e511d39bac69
Currently, for development, I'm triggering the script, and I'm an administrator on the system, and in RM. I'm able to remove the cutoff manually using the action button in the share interface. I'm guessing that the "protected aspect" has something to do with my problem, but I cant find any documentation on it (and generally RM is much less documented than core Alfresco.)
Is there a workaround to make this work, or a step I'm missing?