Commit 0da16656 authored by Romain Courteaud's avatar Romain Courteaud

Do not generate allowedRolesAndUsers with the "View" permission anymore, but

with "Access_contents_information".
When upgrading, do no forget to reindex the site.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@6660 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4d967971
...@@ -78,7 +78,7 @@ class IndexableObjectWrapper(CMFCoreIndexableObjectWrapper): ...@@ -78,7 +78,7 @@ class IndexableObjectWrapper(CMFCoreIndexableObjectWrapper):
""" """
ob = self.__ob ob = self.__ob
allowed = {} allowed = {}
for r in rolesForPermissionOn('View', ob): for r in rolesForPermissionOn('Access_contents_information', ob):
allowed[r] = 1 allowed[r] = 1
if withnuxgroups: if withnuxgroups:
localroles = mergedLocalRoles(ob, withgroups=1) localroles = mergedLocalRoles(ob, withgroups=1)
......
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