Commit 773daa45 authored by Bartek Górny's avatar Bartek Górny

pass user name to property discovery method

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13224 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent df0aca9b
...@@ -750,7 +750,7 @@ class Document(XMLObject): ...@@ -750,7 +750,7 @@ class Document(XMLObject):
user_login = str(getSecurityManager().getUser()) user_login = str(getSecurityManager().getUser())
method = self._getTypeBasedMethod('getPropertyDictFromUserLogin', method = self._getTypeBasedMethod('getPropertyDictFromUserLogin',
fallback_script_id='Document_getPropertyDictFromUserLogin') fallback_script_id='Document_getPropertyDictFromUserLogin')
return method() return method(user_login)
security.declareProtected(Permissions.ModifyPortalContent,'getPropertyDictFromContent') security.declareProtected(Permissions.ModifyPortalContent,'getPropertyDictFromContent')
def getPropertyDictFromContent(self): def getPropertyDictFromContent(self):
......
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