You are here

function hosting_update_6004 in Hosting 7.4

Same name and namespace in other branches
  1. 6.2 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 161
Define database schemas and update functions 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;
}