You are here

function og_is_node_admin in Organic groups 5

Same name and namespace in other branches
  1. 5.8 og.module \og_is_node_admin()
  2. 5.3 og.module \og_is_node_admin()
  3. 5.7 og.module \og_is_node_admin()
11 calls to og_is_node_admin()
og_approve in ./og.module
og_create_admin in ./og.module
og_delete_admin in ./og.module
og_deny in ./og.module
og_invite_page in ./og.module

... See full list

File

./og.module, line 2147

Code

function og_is_node_admin($node) {
  global $user;
  return og_is_group_type($node->type) && (user_access('administer nodes') || !empty($user->og_groups[$node->nid]['is_admin']));
}