function opigno_lms_update_7107 in Opigno LMS 7
Changes default permissions
File
- ./
opigno_lms.install, line 681 - Install, update and uninstall functions for the Opigno LMS installation profile.
Code
function opigno_lms_update_7107(&$sandbox) {
$roles = user_roles(FALSE, NULL);
foreach ($roles as $rid => $rolename) {
if ($rolename == "student manager") {
user_role_grant_permissions($rid, array(
'administer certificates',
));
user_role_grant_permissions($rid, array(
'tft reorder terms',
));
user_role_grant_permissions($rid, array(
'tft add child terms',
));
}
}
module_enable(array(
'r4032login',
'better_exposed_filters',
), TRUE);
}