1.20.x installer.module | installer_install_access() |
Access callback: Resolves if the current user can install via the installer.
It both enforces the 'use installer browser' permission and the global kill switch for the authorize.php script.
Return value
TRUE if the current user can access the installer menu items; FALSE: otherwise.
See also
File
- modules/
installer/ installer.module, line 159 - Handles installation and updates of contributed projects.
Code
function installer_install_access() {
return settings_get('allow_authorize_operations', TRUE) && user_access('use installer browser');
}