Commit 60651d1c authored by Jérome Perrin's avatar Jérome Perrin

fixup! preference: more scalable way of disabling other preferences

testERP5Security shows that owner queries must be done with ExactMatch
parent 6a67dfd2
......@@ -61,7 +61,7 @@ if context.getPriority() != 3: # XXX 3 is Priority.USER\n
return\n
\n
for preference in portal.portal_preferences.searchFolder(\n
owner=str(portal.portal_membership.getAuthenticatedMember()),\n
owner={\'query\': str(portal.portal_membership.getAuthenticatedMember()), \'key\': \'ExactMatch\'},\n
portal_type=context.getPortalType()):\n
preference = preference.getObject()\n
assert portal.portal_membership.getAuthenticatedMember().allowed(preference, [\'Owner\', ]), preference\n
......
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