Commit 36cfe5a9 authored by Jérome Perrin's avatar Jérome Perrin

Revert "Use default Person's site & group as set by respective Career settings...

Revert "Use default Person's site & group as set by respective Career settings (not any more Person's Assignments)."

This reverts commit 9e376960.
Afterall, it seems more logical to use assignments because security depends on
assignements, so a user with inconsistent careers definition could create a
document that he cannot view/modify
parent 2d35daf3
......@@ -55,11 +55,11 @@ Gets document properties discovered from the user who contributes / owns the doc
User would be usually the current user, but sometimes the name has to be given explicitly\n
if e.g. the doc is contributed by email, and the script is run by zope user.\n
"""\n
career_dict = context.ERP5Site_getPersonCareerDict(user_name=user_name)\n
assignment_dict = context.ERP5Site_getPersonAssignmentDict(user_name=user_name)\n
\n
# XXX: make list of properties configurable through preferences\n
return {\'group_list\': career_dict[\'group_list\'],\n
\'site_list\': career_dict[\'site_list\']}\n
return {\'group_list\': assignment_dict[\'group_list\'],\n
\'function_list\': assignment_dict[\'function_list\']}\n
</string> </value>
</item>
<item>
......
149
\ No newline at end of file
150
\ 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