function authorize_access_allowed
Same name in other branches
- 9 core/authorize.php \authorize_access_allowed()
- 8.9.x core/authorize.php \authorize_access_allowed()
- 10 core/authorize.php \authorize_access_allowed()
- 11.x core/authorize.php \authorize_access_allowed()
Determines if the current user is allowed to run authorize.php.
The killswitch in settings.php overrides all else, otherwise, the user must have access to the 'administer software updates' permission.
Return value
TRUE if the current user can run authorize.php, and FALSE if not.
1 call to authorize_access_allowed()
- authorize.php in ./
authorize.php - Administrative script for running authorized file operations.
File
-
./
authorize.php, line 57
Code
function authorize_access_allowed() {
return variable_get('allow_authorize_operations', TRUE) && user_access('administer software updates');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.