function ctools_metadata_taxonomy_access

Access callback for the taxonomy entities.

1 string reference to 'ctools_metadata_taxonomy_access'
_ctools_entity_access in includes/entity-access.inc
Core hack to include entity api-esque 'access callback' functions to core entities without needing to rely on entity api. Exception: We don't touch file entity. You must have entity API enabled to view files.

File

includes/entity-access.inc, line 146

Code

function ctools_metadata_taxonomy_access($op, $entity, $account, $entity_type) {
    if ($entity_type == 'taxonomy_vocabulary') {
        return user_access('administer taxonomy', $account);
    }
    if (user_access('administer taxonomy', $account) || user_access('access content', $account) && $op == 'view') {
        return TRUE;
    }
    return FALSE;
}