You are here

function social_comment_update_8002 in Open Social 8.8

Same name and namespace in other branches
  1. 8.9 modules/social_features/social_comment/social_comment.install \social_comment_update_8002()
  2. 8.3 modules/social_features/social_comment/social_comment.install \social_comment_update_8002()
  3. 8.4 modules/social_features/social_comment/social_comment.install \social_comment_update_8002()
  4. 8.5 modules/social_features/social_comment/social_comment.install \social_comment_update_8002()
  5. 8.6 modules/social_features/social_comment/social_comment.install \social_comment_update_8002()
  6. 8.7 modules/social_features/social_comment/social_comment.install \social_comment_update_8002()
  7. 10.3.x modules/social_features/social_comment/social_comment.install \social_comment_update_8002()
  8. 10.0.x modules/social_features/social_comment/social_comment.install \social_comment_update_8002()
  9. 10.1.x modules/social_features/social_comment/social_comment.install \social_comment_update_8002()
  10. 10.2.x modules/social_features/social_comment/social_comment.install \social_comment_update_8002()

Enable 'administer comments' permission for sitemanagers and contentmanagers.

File

modules/social_features/social_comment/social_comment.install, line 110
Install, update and uninstall functions for the social_comment module.

Code

function social_comment_update_8002() {

  // These permissions were added to default installs in PR 959 but an update
  // hook was not added at that point so this must be rectified now.
  user_role_grant_permissions('contentmanager', [
    'administer comments',
  ]);
  user_role_grant_permissions('sitemanager', [
    'administer comments',
  ]);
}