You are here

function update_manager_access in Drupal 7

Access callback: Resolves if the current user can access updater menu items.

It both enforces the 'administer software updates' permission and the global kill switch for the authorize.php script.

Return value

TRUE if the current user can access the updater menu items; FALSE otherwise.

See also

update_menu()

5 calls to update_manager_access()
system_help in modules/system/system.module
Implements hook_help().
update_help in modules/update/update.module
Implements hook_help().
update_mail in modules/update/update.module
Implements hook_mail().
_update_message_text in modules/update/update.module
Returns the appropriate message text when site is out of date or not secure.
_update_requirement_check in modules/update/update.install
Fills in the requirements array.
1 string reference to 'update_manager_access'
update_menu in modules/update/update.module
Implements hook_menu().

File

modules/update/update.module, line 263
Handles updates of Drupal core and contributed projects.

Code

function update_manager_access() {
  return variable_get('allow_authorize_operations', TRUE) && user_access('administer software updates');
}