You are here

function tft_taxonomy_access_access in Taxonomy File Tree 7.2

Access callback: check if user has access to manage this term access.

1 call to tft_taxonomy_access_access()
tft_taxonomy_access_tft_folder_menu_links_alter in modules/tft_taxonomy_access/tft_taxonomy_access.module
Implements hook_tft_folder_menu_links_alter().
1 string reference to 'tft_taxonomy_access_access'
tft_taxonomy_access_menu in modules/tft_taxonomy_access/tft_taxonomy_access.module
Implements hook_menu().

File

modules/tft_taxonomy_access/tft_taxonomy_access.module, line 97
Taxonomy Access integration.

Code

function tft_taxonomy_access_access($tid) {
  if (!module_exists('tft_og')) {
    return user_access('tft manage access control');
  }
  else {
    if ($gid = tft_og_get_og_nid($tid)) {
      return og_user_access('node', $gid, 'tft manage access control');
    }
    else {
      return user_access('tft manage access control');
    }
  }
}