You are here

function hosting_update_6004 in Hosting 6.2

Same name and namespace in other branches
  1. 7.4 hosting.install \hosting_update_6004()
  2. 7.3 hosting.install \hosting_update_6004()

Implements hook_update_N().

Stricter initial permissions for the anonymous user.

File

./hosting.install, line 138
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;
}