Commit c5f05bf6 authored by Georgios Dagkakis's avatar Georgios Dagkakis

erp5_document_scanner: add Manager proxy role to script

for Base_getDocumentScannerDefaultBackendDataAsJSON
since we need to be able to create Active Process
parent c86107bf
# Manager Role, to be able to create Active Process
from zExceptions import Unauthorized
import json
if REQUEST is not None:
raise Unauthorized
active_process = context.getPortalObject().portal_activities.newActiveProcess(
reference=context.Base_getDocumentScannerDefaultReference())
......
......@@ -50,7 +50,15 @@
</item>
<item>
<key> <string>_params</string> </key>
<value> <string></string> </value>
<value> <string>REQUEST=None</string> </value>
</item>
<item>
<key> <string>_proxy_roles</string> </key>
<value>
<tuple>
<string>Manager</string>
</tuple>
</value>
</item>
<item>
<key> <string>id</string> </key>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment