authorize_access_allowed

Versions
mediamosa-21
authorize_access_allowed()

Determine 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, otherwise FALSE.

Code

./authorize.php, line 56

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