You are here

function create_user_permission_access_callback in Create user permission 7

Custom access callback function for the 'admin/people/create' menu item.

Extends the default core 'administer users' permission by OR-adding the 'create users' permission which is provided by this module.

Return value

bool Access result.

1 string reference to 'create_user_permission_access_callback'
create_user_permission_menu_alter in ./create_user_permission.module
Implements hook_menu_alter().

File

./create_user_permission.module, line 56
The create user permission module.

Code

function create_user_permission_access_callback() {
  return user_access('administer users') || user_access('create users');
}