You are here

function workspace_configure_access in Workspace 7

Same name and namespace in other branches
  1. 6 workspace.module \workspace_configure_access()

Menu access callback.

1 string reference to 'workspace_configure_access'
workspace_menu in ./workspace.module
Implements hook_menu().

File

./workspace.module, line 152
Presents a user-centric view of content.

Code

function workspace_configure_access($account) {
  global $user;
  if ($user->uid == 1 && $account->uid > 1) {
    return user_access('administer workspaces', $account) || user_access('administer own workspace', $account);
  }
  return $user->uid != 0 && user_access('administer workspaces') || $user->uid == $account->uid && user_access('administer own workspace');
}