function authorize_access_allowed

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.

File

./authorize.php, line 57
Administrative script for running authorized file operations.

Code

function authorize_access_allowed() {
  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/authorize.php/function/authorize_access_allowed/7.x