[CMF-checkins] SVN: CMF/trunk/CMFDefault/browser/folder.py - fixed
permission context
Yvo Schubbe
y.2007- at wcm-solutions.de
Tue Jul 3 12:14:55 EDT 2007
Log message for revision 77367:
- fixed permission context
Changed:
U CMF/trunk/CMFDefault/browser/folder.py
-=-
Modified: CMF/trunk/CMFDefault/browser/folder.py
===================================================================
--- CMF/trunk/CMFDefault/browser/folder.py 2007-07-03 16:14:33 UTC (rev 77366)
+++ CMF/trunk/CMFDefault/browser/folder.py 2007-07-03 16:14:55 UTC (rev 77367)
@@ -371,11 +371,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