function social_language_update_10301 in Open Social 10.3.x
Allow "Content Manager" role to manage translations.
File
- modules/
custom/ social_language/ social_language.install, line 127 - Install, update and uninstall functions for the social_language module.
Code
function social_language_update_10301() {
$permissions = [
'create content translations',
'delete content translations',
'update content translations',
];
user_role_grant_permissions('contentmanager', $permissions);
}