Commit 287c6014 authored by Romain Courteaud's avatar Romain Courteaud

Update Base_setDefaultSecurity, in order to remove View permission to Author role.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19590 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 0f418f57
......@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.PythonScripts.PythonScript</string>
<string>PythonScript</string>
</tuple>
<none/>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<tuple/>
</tuple>
</pickle>
<pickle>
......@@ -83,7 +80,6 @@ common_permission_list = [p for p in [\n
\'Access session data\',\n
\'Copy or Move\',\n
\'List folder contents\',\n
\'View\',\n
\'View History\',\n
] if p in permission_list]\n
\n
......@@ -92,6 +88,10 @@ author_permission_list = [p for p in [\n
\'Add portal folders\',\n
] if p in permission_list]\n
\n
auditor_permission_list = [p for p in [\n
\'View\',\n
] if p in permission_list]\n
\n
assignor_permission_list = [p for p in [\n
\'Modify portal content\',\n
\'Change local roles\',\n
......@@ -100,11 +100,11 @@ assignor_permission_list = [p for p in [\n
\n
# Define ERP5 permissions for each role\n
erp5_role_dict = {\n
\'Assignee\': common_permission_list,\n
\'Assignee\': common_permission_list + auditor_permission_list,\n
\'Assignor\': common_permission_list + author_permission_list +\\\n
assignor_permission_list,\n
\'Associate\': common_permission_list,\n
\'Auditor\' : common_permission_list,\n
assignor_permission_list + auditor_permission_list,\n
\'Associate\': common_permission_list + auditor_permission_list,\n
\'Auditor\' : common_permission_list + auditor_permission_list,\n
\'Author\': common_permission_list + author_permission_list,\n
\'Manager\': permission_list\n
}\n
......@@ -173,6 +173,7 @@ return "finished"\n
<string>p</string>
<string>common_permission_list</string>
<string>author_permission_list</string>
<string>auditor_permission_list</string>
<string>assignor_permission_list</string>
<string>erp5_role_dict</string>
<string>erp5_permission_dict</string>
......
714
\ No newline at end of file
715
\ No newline at end of file
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