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.
TRUE if the current user can run authorize.php, and FALSE if not.
function authorize_access_allowed() {
return config('system.authorize')
->get('allow_operations') && user_access('administer software updates');
}