X-Git-Url: https://svn.cri.ensmp.fr/git/Portfolio.git/blobdiff_plain/2f5dd859916d7699e0005dedfabf262ef107143b..e0660307a6fa16a363722bcf06f74bb9f53e1d30:/skins/getPhotoInfo.py?ds=inline 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', {})