You are here

function social_user_update_8005 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_8005()
  2. 8 modules/social_features/social_user/social_user.install \social_user_update_8005()
  3. 8.2 modules/social_features/social_user/social_user.install \social_user_update_8005()
  4. 8.3 modules/social_features/social_user/social_user.install \social_user_update_8005()
  5. 8.4 modules/social_features/social_user/social_user.install \social_user_update_8005()
  6. 8.5 modules/social_features/social_user/social_user.install \social_user_update_8005()
  7. 8.6 modules/social_features/social_user/social_user.install \social_user_update_8005()
  8. 8.7 modules/social_features/social_user/social_user.install \social_user_update_8005()
  9. 8.8 modules/social_features/social_user/social_user.install \social_user_update_8005()
  10. 10.3.x modules/social_features/social_user/social_user.install \social_user_update_8005()
  11. 10.0.x modules/social_features/social_user/social_user.install \social_user_update_8005()
  12. 10.2.x modules/social_features/social_user/social_user.install \social_user_update_8005()

Add permissions to administer the navigation settings.

File

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

Code

function social_user_update_8005() {
  $rid = 'sitemanager';

  // Revoke permissions for the role.
  $role = Role::load($rid);
  if ($role) {
    $permissions = [
      'administer navigation settings',
    ];
    user_role_grant_permissions($rid, $permissions);
  }
}