You are here

function apigee_edge_install in Apigee Edge 8

Implements hook_install().

File

./apigee_edge.install, line 109
Copyright 2018 Google Inc.

Code

function apigee_edge_install() {
  if (\Drupal::moduleHandler()
    ->moduleExists('user')) {
    $authenticated_user_permissions = [
      'view own developer_app',
      'create developer_app',
      'update own developer_app',
      'delete own developer_app',
      'analytics own developer_app',
      'add_api_key own developer_app',
      'revoke_api_key own developer_app',
      'edit_api_products developer_app',
    ];
    user_role_grant_permissions(RoleInterface::AUTHENTICATED_ID, $authenticated_user_permissions);
  }
}