function hosting_update_6013 in Hostmaster (Aegir) 6
Implements hook_update_N().
Add a permission allowing users to view the 'site disabled' message, which got lost when 'access content' permission was revoked a while ago.
File
- modules/
hosting/ hosting.install, line 341 - Install, update and uninstall for the hosting module.
Code
function hosting_update_6013() {
$ret = array();
install_include(array(
'user',
));
install_add_permissions(install_get_rid('anonymous user'), array(
'access disabled sites',
));
install_add_permissions(install_get_rid('authenticated user'), array(
'access disabled sites',
));
return $ret;
}