You are here

function og_ui_access_bundle_role in Organic groups 7.2

Menu access; Check permissions for role editing.

Parameters

$perm: Permission string. E.g. 'administer group'.

$rid: Role ID.

Return value

True if current user is allowed to edit given role. False otherwise.

1 string reference to 'og_ui_access_bundle_role'
og_ui_menu in og_ui/og_ui.module
Implements hook_menu().

File

og_ui/og_ui.module, line 397
Organic groups UI.

Code

function og_ui_access_bundle_role($rid) {
  if (!user_access('administer group')) {
    return FALSE;
  }
  $role = og_role_load($rid);
  return (bool) $role;
}