You are here

function social_user_update_8809 in Open Social 10.1.x

Same name and namespace in other branches
  1. 8.9 modules/social_features/social_user/social_user.install \social_user_update_8809()
  2. 8.7 modules/social_features/social_user/social_user.install \social_user_update_8809()
  3. 8.8 modules/social_features/social_user/social_user.install \social_user_update_8809()
  4. 10.3.x modules/social_features/social_user/social_user.install \social_user_update_8809()
  5. 10.0.x modules/social_features/social_user/social_user.install \social_user_update_8809()
  6. 10.2.x modules/social_features/social_user/social_user.install \social_user_update_8809()

Update permissions for the sitemanager role.

File

modules/social_features/social_user/social_user.install, line 190
Install, update and uninstall functions for the social_user module.

Code

function social_user_update_8809() {

  // Grant the sitemanagers new permissions.
  user_role_grant_permissions('sitemanager', [
    'assign contentmanager role',
    'assign sitemanager role',
  ]);

  // The administrator should be able to assign all roles.
  user_role_grant_permissions('administrator', [
    'assign all roles',
  ]);
}