You are here

function apigee_edge_teams_install in Apigee Edge 8

Implements hook_install().

File

modules/apigee_edge_teams/apigee_edge_teams.install, line 68
Copyright 2019 Google Inc.

Code

function apigee_edge_teams_install() {
  if (\Drupal::moduleHandler()
    ->moduleExists('user')) {
    $authenticated_user_permissions = [
      'accept own team invitation',
      'decline own team invitation',
    ];
    user_role_grant_permissions(RoleInterface::AUTHENTICATED_ID, $authenticated_user_permissions);
  }
}