[CMF-checkins] SVN: CMF/branches/2.0/CMFDefault/browser/folder.py -
fixed permission context
Yvo Schubbe
y.2007- at wcm-solutions.de
Tue Jul 3 12:14:12 EDT 2007
Log message for revision 77364:
- fixed permission context
Changed:
U CMF/branches/2.0/CMFDefault/browser/folder.py
-=-
Modified: CMF/branches/2.0/CMFDefault/browser/folder.py
===================================================================
--- CMF/branches/2.0/CMFDefault/browser/folder.py 2007-07-03 16:08:14 UTC (rev 77363)
+++ CMF/branches/2.0/CMFDefault/browser/folder.py 2007-07-03 16:14:12 UTC (rev 77364)
@@ -169,11 +169,10 @@
@memoize
@decode
def up_info(self):
+ up_obj = self.context.aq_inner.aq_parent
mtool = self._getTool('portal_membership')
- allowed = mtool.checkPermission(ListFolderContents, self.context,
- 'aq_parent')
+ allowed = mtool.checkPermission(ListFolderContents, up_obj)
if allowed:
- up_obj = self.context.aq_inner.aq_parent
if IDynamicType.providedBy(up_obj):
up_url = up_obj.getActionInfo('object/folderContents')['url']
return {'icon': '%s/UpFolder_icon.gif' % self._getPortalURL(),
More information about the CMF-checkins
mailing list