You are here

function shoutbox_domain_user_access in Shoutbox 7.2

Same name and namespace in other branches
  1. 7 shoutbox_domain/shoutbox_domain.module \shoutbox_domain_user_access()

Menu access callback.

1 string reference to 'shoutbox_domain_user_access'
shoutbox_domain_menu_alter in shoutbox_domain/shoutbox_domain.module
Implements hook_menu_alter().

File

shoutbox_domain/shoutbox_domain.module, line 98

Code

function shoutbox_domain_user_access($string, $account = NULL) {
  if (!$account) {
    global $user;
    $account = $user;
  }
  return user_access($string, $account) || user_access($string . ' assigned domains', $account);
}