Changeset 2454 in products for quintagroup.plonecaptchas/branches/plone4/quintagroup/plonecaptchas/skins/captchas_sendto_form/sendto.cpy
- Timestamp:
- Jun 3, 2010 11:05:05 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
quintagroup.plonecaptchas/branches/plone4/quintagroup/plonecaptchas/skins/captchas_sendto_form/sendto.cpy
r1874 r2454 23 23 24 24 if not mtool.checkPermission(AllowSendto, context): 25 context.plone_utils.addPortalMessage(_(u'You are not allowed to send this link.'), 'error')26 return state.set(status='failure')27 28 at = getToolByName(context, 'portal_actions')29 show = False30 actions = at.listActionInfos(object=context)31 # Check for visbility of sendto action32 for action in actions:33 if action['id'] == 'sendto' and action['category'] == 'document_actions':34 show = True35 if not show:36 25 context.plone_utils.addPortalMessage(_(u'You are not allowed to send this link.'), 'error') 37 26 return state.set(status='failure')
Note: See TracChangeset
for help on using the changeset viewer.