function update_manager_access
7.x update.module | update_manager_access() |
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
5 calls to update_manager_access()
- system_help in drupal-7.x/
modules/ system/ system.module - Implements hook_help().
- update_help in drupal-7.x/
modules/ update/ update.module - Implements hook_help().
- update_mail in drupal-7.x/
modules/ update/ update.module - Implements hook_mail().
- _update_message_text in drupal-7.x/
modules/ update/ update.module - Returns the appropriate message text when site is out of date or not secure.
- _update_requirement_check in drupal-7.x/
modules/ update/ update.install - Fills in the requirements array.
1 string reference to 'update_manager_access'
- update_menu in drupal-7.x/
modules/ update/ update.module - Implements hook_menu().
File
- drupal-7.x/
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');
}