You are here

function hosting_update_6004 in Hostmaster (Aegir) 6

Implements hook_update_N().

Stricter initial permissions for the anonymous user.

File

modules/hosting/hosting.install, line 135
Install, update and uninstall for the hosting module.

Code

function hosting_update_6004() {
  $ret = array();
  install_include(array(
    'user',
  ));
  install_remove_permissions(install_get_rid('anonymous user'), array(
    'access content',
    'access all views',
  ));
  install_remove_permissions(install_get_rid('authenticated user'), array(
    'access content',
    'access all views',
  ));
  return $ret;
}