Active
Project:
Views Boxes
Version:
7.x-1.x-dev
Component:
Code
Priority:
Minor
Category:
Task
Assigned:
Reporter:
Created:
19 Jun 2012 at 15:55 UTC
Updated:
25 Jun 2012 at 21:23 UTC
Jump to comment: Most recent file
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:
We also disable Box description and Advanced Settings in through a boxes form alter.
Comments
Comment #1
alphageekboy commentedHere is my take at the patch to adjust these fields.
Comment #2
alphageekboy commentedUpdated patch to remove extra whitespace and moved #disabled for view name to correct line.
Comment #3
alphageekboy commentedNew version with following patches already applied prior to diff.
http://drupal.org/files/views-boxes-default-argument-1345282-2.patch
http://drupal.org/files/arg_title_length_128_limit-1439008-1.patch
http://drupal.org/files/empty-block-remover-1355226-6.patch
http://drupal.org/files/url_query_aware-more_link_url-1443254-2.patch
http://drupal.org/files/views_boxes-max-length-for-more-link-1472220-1.p...