##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')
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', {})
##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')
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)
i18n:attributes="alt"/>
</a>
</span>
- <span class="button cb">
+ <span class="button cb" tal:condition="features/checkbox|nothing">
<input type="checkbox" name="uids:list"
tal:attributes="value info/cmf_uid"/>
</span>
features batchInfos/features"
tal:omit-tag="">
<form tal:attributes="action string:${here/absolute_url}/portfolio_edit_form" method="post">
- <div id="image_toolbar" class="image_toolbar">
+ <div id="image_toolbar" class="image_toolbar"
+ tal:define="ModifyPortalContent modules/Products/CMFCore/permissions/ModifyPortalContent"
+ tal:condition="python:mtool.checkPermission(ModifyPortalContent, here)">
<input type="image" width="17" height="27" alt="delete" title="delete"
name="delete"
tal:attributes="src string:$portal_url/trash_btn.gif"