Skip to content

Commit

Permalink
[#432] Add "edit_api_products" to authenticated user default permissi…
Browse files Browse the repository at this point in the history
…ons.
  • Loading branch information
arlina-espinoza committed Aug 28, 2020
1 parent f5452d4 commit 378eba3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apigee_edge.install
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ function apigee_edge_install() {
'delete own developer_app',
'analytics own developer_app',
'add_api_key own developer_app',
'edit_api_products developer_app',
];
user_role_grant_permissions(RoleInterface::AUTHENTICATED_ID, $authenticated_user_permissions);
}
Expand Down Expand Up @@ -266,7 +267,8 @@ 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'
'revoke_api_key own developer_app',
'edit_api_products developer_app',
];
user_role_grant_permissions(RoleInterface::AUTHENTICATED_ID, $authenticated_user_permissions);
}
Expand Down

0 comments on commit 378eba3

Please sign in to comment.