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