Commit 62a0e9d2 authored by Romain Courteaud's avatar Romain Courteaud

Add the possibility to acquire security from parent.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@18769 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2d7356d7
...@@ -79,7 +79,11 @@ if object is None:\n ...@@ -79,7 +79,11 @@ if object is None:\n
return []\n return []\n
\n \n
for base_category in base_category_list:\n for base_category in base_category_list:\n
for o in object.getValueList(base_category):\n if base_category == \'parent\':\n
o_list = [object.getParentValue()]\n
else:\n
o_list = object.getValueList(base_category)\n
for o in o_list:\n
for user, role_list in o.get_local_roles():\n for user, role_list in o.get_local_roles():\n
for role in role_list:\n for role in role_list:\n
category_dict.setdefault(role, []).append(user)\n category_dict.setdefault(role, []).append(user)\n
...@@ -153,6 +157,7 @@ return category_dict\n ...@@ -153,6 +157,7 @@ return category_dict\n
<string>_getiter_</string> <string>_getiter_</string>
<string>base_category</string> <string>base_category</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>o_list</string>
<string>o</string> <string>o</string>
<string>user</string> <string>user</string>
<string>role_list</string> <string>role_list</string>
......
266 267
\ No newline at end of file \ 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