Block Contextual Links Hider

Categories

Component ID

1572338

Component name

Block Contextual Links Hider

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Component created

Component changed

Component body

Sometimes you want your content manager to be able to edit just certain blocks/boxes.. We're using a wide array of modules to provide blocks like boxes, views, entity_boxes etc each providing their own methods for access control and contextual links..

Every module however is dependent on the 'administer blocks' privilege. Not enabling this privilege leads to problems with for example the boxes module that replaces these contextual links through javascript. The blocks module also doesn't provide a per-block method for access control.

This module requires you to enable the administer blocks and administer boxes privileges for the user and simply hides all the contextual links except the ones you specify in configuration. Please be aware that this is a work-around with some security-issues but it works for our use-cases!