Commit 9d9d0a75 authored by Yusei Tahara's avatar Yusei Tahara

Fixed a bug which allows publishing even if user does not have appropriate...

Fixed a bug which allows publishing even if user does not have appropriate role.This problem happens when published object is not a subclass of ERP5Type.Base. (ex. Accessor method object, etc.)


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@25757 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c6c0c4a9
...@@ -157,8 +157,8 @@ class ERP5User(PropertiedUser): ...@@ -157,8 +157,8 @@ class ERP5User(PropertiedUser):
return 0 return 0
# patch by Klaus for LocalRole blocking # patch by Klaus for LocalRole blocking
if getattr(object, '_getAcquireLocalRoles', None) is not None: if getattr(inner_obj, '_getAcquireLocalRoles', None) is not None:
if not object._getAcquireLocalRoles(): if not inner_obj._getAcquireLocalRoles():
break break
inner = aq_inner( inner_obj ) inner = aq_inner( inner_obj )
......
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