function apigee_edge_update_8103 in Apigee Edge 8
Assign the "add_api_key own developer_app" permission to authenticated users.
File
- ./
apigee_edge.install, line 286 - Copyright 2018 Google Inc.
Code
function apigee_edge_update_8103() {
if (\Drupal::moduleHandler()
->moduleExists('user')) {
$authenticated_user_permissions = [
'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);
}
}