Commit 9a3d5c2e authored by Jérome Perrin's avatar Jérome Perrin

wip checkPermission hasattr ?

parent 6da2106f
Pipeline #36509 failed with stage
in 0 seconds
......@@ -4,6 +4,7 @@ if 'format' in container.REQUEST:
portal = context.getPortalObject()
try:
return portal.portal_membership.checkPermission('View', context)
except Unauthorized: # six.PY3:
except Unauthorized: # six.PY3:
raise # https://lab.nexedi.com/nexedi/erp5/-/commit/420341451526c33ba3bd4679c6de169ac167fd62#note_214417
pass
return False
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