You are here

function workbench_access_views_access in Workbench Access 7

Access callback for content user tab.

1 string reference to 'workbench_access_views_access'
workbench_access_menu in ./workbench_access.module
Implements hook_menu().

File

./workbench_access.module, line 178
Workbench Access module file.

Code

function workbench_access_views_access($account) {
  global $user;
  if ($user->uid != $account->uid) {
    return FALSE;
  }
  if (user_access('access workbench access by role')) {
    return TRUE;
  }
  return FALSE;
}