You are here

function social_book_update_10301 in Open Social 10.3.x

Allow CM+ translate "Book Page" node type.

File

modules/social_features/social_book/social_book.install, line 278
Install, update and uninstall functions for the social_book module.

Code

function social_book_update_10301() {
  foreach ([
    'sitemanager',
    'contentmanager',
  ] as $role_id) {
    user_role_grant_permissions($role_id, [
      'translate book node',
    ]);
  }
}