function social_topic_update_10302 in Open Social 10.3.x
Allow CM+ translate "Topic" node type.
File
- modules/
social_features/ social_topic/ social_topic.install, line 448 - Install, update and uninstall functions for the social_topic module.
Code
function social_topic_update_10302() {
foreach ([
'sitemanager',
'contentmanager',
] as $role_id) {
user_role_grant_permissions($role_id, [
'translate topic node',
]);
}
}