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