You are here

function hosting_platform_update_6206 in Hosting 7.3

Same name and namespace in other branches
  1. 6.2 platform/hosting_platform.install \hosting_platform_update_6206()
  2. 7.4 platform/hosting_platform.install \hosting_platform_update_6206()

Add new permission.

File

platform/hosting_platform.install, line 179
Define database schema and update functions for the Platforms module.

Code

function hosting_platform_update_6206() {
  $ret = array();

  // Temporarily enable Install Profile API module and load includes.
  module_enable(array(
    'install_profile_api',
  ));
  module_load_include('inc', 'install_profile_api', 'core/user');
  install_add_permissions(install_get_rid('aegir administrator'), array(
    'create sites on locked platforms',
  ));
  install_add_permissions(install_get_rid('aegir platform manager'), array(
    'create sites on locked platforms',
  ));
  module_disable(array(
    'install_profile_api',
  ));
  return $ret;
}