Commit a9236b9e authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_cloud: Set proxy roles for allow invoke it by the allocator.

parent 77322d78
import json
computer = context
portal = context.getPortalObject()
from zExceptions import Unauthorized
if REQUEST is not None:
raise Unauthorized
if computer.getAllocationScope() not in ['open/public', 'open/subscription']:
# Don't update non public computer
......
......@@ -50,7 +50,15 @@
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>allocated_instance=None</string> </value>
<value> <string>allocated_instance=None, 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