Posted by stephandale on June 30, 2009 at 1:27pm
Jump to:
| Project: | Taxonomy Delegate |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | task |
| Priority: | normal |
| Assigned: | NancyDru |
| Status: | closed (fixed) |
Issue Summary
In response to a previous bug report, you added an access callback to the menu hook. http://drupal.org/node/291665
Function _taxonomy_delegate_access checks access via _taxonomy_delegate_my_vocabularies. You could save on a database hit if the user doesn't have any roles, i.e. is logged out - return an empty array from _taxonomy_delegate_my_vocabularies.
...
foreach ($user->roles as $rid => $name) {
$list[] = $rid;
}
if (0 == count($list)) {
return array();
}
...P.S. Many thanks for the module - I've found it essential to devolve access control when a large site is organised via TAC.
Comments
#1
Committed to 6.x-1.x-dev
#2
Automatically closed -- issue fixed for 2 weeks with no activity.