function og_vocab_taxonomy_term_edit_access in OG Vocabulary 7
Return edit access for a given term.
1 string reference to 'og_vocab_taxonomy_term_edit_access'
- og_vocab_menu_alter in ./
og_vocab.module - Implements hook_menu_alter().
File
- ./
og_vocab.module, line 1453 - Give each group its own system controlled vocabularies.
Code
function og_vocab_taxonomy_term_edit_access($term) {
if ($og_vocab = og_vocab_relation_get($term->vid)) {
return og_user_access($og_vocab->group_type, $og_vocab->gid, 'edit terms') || og_user_access($og_vocab->group_type, $og_vocab->gid, 'administer taxonomy');
}
return taxonomy_term_edit_access($term);
}