X-Git-Url: https://scm.cri.mines-paristech.fr/git/Portfolio.git/blobdiff_plain/f741aec4647e8df9771660743008ea13387cbe86..7d1d5b450a86762cd8dceb6a2e15eafa6231a755:/skins/getPhotosInfos.py?ds=sidebyside diff --git a/skins/getPhotosInfos.py b/skins/getPhotosInfos.py index 1679c40..2d42635 100755 --- a/skins/getPhotosInfos.py +++ b/skins/getPhotosInfos.py @@ -1,7 +1,7 @@ ##parameters=portfolio from Products.Plinn.PloneMisc import Batch 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') @@ -18,6 +18,8 @@ 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 req = context.REQUEST pho_start = req.get('pho_start', 0)