X-Git-Url: https://scm.cri.mines-paristech.fr/git/Portfolio.git/blobdiff_plain/2f5dd859916d7699e0005dedfabf262ef107143b..fd69eaaf44e7c071f179242936c737509eb667ef:/skins/getPhotoInfo.py?ds=sidebyside diff --git a/skins/getPhotoInfo.py b/skins/getPhotoInfo.py index 2947778..bb4391d 100755 --- a/skins/getPhotoInfo.py +++ b/skins/getPhotoInfo.py @@ -1,6 +1,6 @@ ##parameters= from Products.CMFCore.utils import getToolByName -from Products.CMFCore.permissions import ReviewPortalContent +from Products.CMFCore.permissions import ReviewPortalContent, ModifyPortalContent mtool = getToolByName(context, 'portal_membership') pptool = getToolByName(context, 'portal_photo_print', None) uidtool = getToolByName(context, 'portal_uidhandler') @@ -17,6 +17,9 @@ features['cart'] = lambda o : '%s/get_slide_buyable_items' % o.absolute_url() if mtool.checkPermission(ReviewPortalContent, context) : features['hideAnonymous'] = True +if mtool.checkPermission(ModifyPortalContent, context) : + features['checkbox'] = True + sd = context.session_data_manager.getSessionData(create = 1) selDict = sd.get('objects_selection_dict', {})