Ignore:
Timestamp:
Jun 3, 2010 11:05:05 AM (14 years ago)
Author:
mylan
Message:

#194: Fixed sendto form for plone-4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • quintagroup.plonecaptchas/branches/plone4/quintagroup/plonecaptchas/skins/captchas_sendto_form/sendto.cpy

    r1874 r2454  
    2323 
    2424if 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 = False 
    30 actions = at.listActionInfos(object=context) 
    31 # Check for visbility of sendto action 
    32 for action in actions: 
    33     if action['id'] == 'sendto' and action['category'] == 'document_actions': 
    34         show = True 
    35 if not show: 
    3625    context.plone_utils.addPortalMessage(_(u'You are not allowed to send this link.'), 'error') 
    3726    return state.set(status='failure') 
Note: See TracChangeset for help on using the changeset viewer.