Commit 4c92ca6c authored by Gabriel Monnerat's avatar Gabriel Monnerat

erp5_short_message: Remove proxy role in ShortMessage_init to not allow...

erp5_short_message: Remove proxy role in ShortMessage_init to not allow anonymous users to create/edit Short Messages
parent a2a6ca91
......@@ -50,10 +50,7 @@
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>"""Owner Proxy Role allows anonymous users to create events\n
through web sites.\n
\n
Reference will be probably generated with dedicated tool\n
<value> <string>"""Reference will be probably generated with dedicated tool\n
in near future\n
"""\n
portal = context.getPortalObject()\n
......@@ -69,22 +66,13 @@ new_id = portal.portal_ids.generateNewId(id_group=id_group, default=default)\n
reference = \'%s-%s\' % (short_portal_type, new_id)\n
\n
# Set preferred text format and reference\n
context.edit(content_type=\'text/plain\',\n
reference=reference)\n
context.edit(content_type=\'text/plain\', reference=reference)\n
</string> </value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>*args, **kw</string> </value>
</item>
<item>
<key> <string>_proxy_roles</string> </key>
<value>
<tuple>
<string>Owner</string>
</tuple>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>ShortMessage_init</string> </value>
......
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