update_manager_access

function update_manager_access

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

update_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');
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!update!update.module/function/update_manager_access/7.x

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部