update_manager_access

Versions
mediamosa-21
update_manager_access()

Determine if the current user can access the updater menu items.

This is used as a menu system access callback. It both enforces the 'administer software updates' permission and the global killswitch for the authorize.php script.

See also

update_menu()

▾ 5 functions call 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
Helper function to return the appropriate message text when the site is out of date or missing a security update.
_update_requirement_check in modules/update/update.install
Private helper method to fill in the requirements array.

Code

modules/update/update.module, line 247

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