Closed (fixed)
Project:
Acidfree Albums
Version:
6.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
22 Feb 2011 at 06:12 UTC
Updated:
8 Mar 2011 at 15:11 UTC
Quick links in album view show whether or not the Show quick links in album view option is enabled.
This is tested against the admin account.
Comments
Comment #1
rhylos commentedbuild v 1.147.2.46 2011/02/21
Comment #2
mwheinz commentedComment #3
mwheinz commentedFixed.
The clause for checking if the user can upload to any album was incorrectly nested so it was effectively overriding the system setting.
The new clause is:
if (variable_get('acidfree_show_quick_links',0) &&
(node_access('update',$album) || $album->share ||
user_access('can upload to any album'))) {
$output = '
_acidfree_create_quick_links($album,'item_list',variable_get('acidfree_add_items_label', t('Add Acidfree Items')) .':') .
'
';
}