See #378.Adding permissions for contextual links.