X-Git-Url: https://scm.cri.ensmp.fr/git/Portfolio.git/blobdiff_plain/2f5dd859916d7699e0005dedfabf262ef107143b..ac93b62d919ba13d13ec3f5f2189776093483e53:/skins/getPhotoInfo.py 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', {})