function hosting_update_6205 in Hosting 7.4
Same name and namespace in other branches
- 6.2 hosting.install \hosting_update_6205()
- 7.3 hosting.install \hosting_update_6205()
Add permissions to roles.
File
- ./
hosting.install, line 511 - Define database schemas and update functions for the hosting module.
Code
function hosting_update_6205() {
$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 client'), array(
'view own quota',
'create site aliases',
'create verify task',
'create clone task',
'create migrate task',
'create ssl certificate',
'access task logs',
'view package',
'view platform',
'view revisions',
'edit site',
));
install_add_permissions(install_get_rid('aegir account manager'), array(
'administer clients',
'access content',
'access user profiles',
'edit all quotas',
'view all quotas',
'view own quota',
'edit client uname',
'view_site',
));
install_add_permissions(install_get_rid('aegir platform manager'), array(
'view package',
'administer platforms',
'cancel own tasks',
'view own tasks',
'access content',
'view task',
'administer sites',
'create verify task',
'retry failed tasks',
'administer clients',
'administer tasks',
));
install_add_permissions(install_get_rid('aegir administrator'), array(
'access administration menu',
'administer platforms',
'administer servers',
'access content',
'view revisions',
'administer hosting aliases',
'create site aliases',
'edit all quotas',
'view all quotas',
'view own quota',
'access hosting signup form',
'create ssl certificate',
'access user profiles',
'update status of tasks',
));
module_disable(array(
'install_profile_api',
));
return $ret;
}