We have a special use case for a project to hide and disable certain fields if the user does not have administer_boxes permission. Essentially, this allows users with Edit boxes permission to curate items and include them with the views box but not have access to change any other box characteristics.

This was a quick fix for a single use case and if the plugin file is updated we may need to repatch the file to keep the permissions.

Field changes:

  • View Select - Disabled = TRUE
  • Hide box if no results - Access = FALSE
  • More link text - Access = FALSE
  • More link url - Access = FALSE
  • Expose filters in render checkbox - Access = FALSE

We also disable Box description and Advanced Settings in through a boxes form alter.

Comments

alphageekboy’s picture

Here is my take at the patch to adjust these fields.

alphageekboy’s picture

Updated patch to remove extra whitespace and moved #disabled for view name to correct line.