Skip to content

Commit

Permalink
Update plugin role permissions (#3145)
Browse files Browse the repository at this point in the history
When the direct paging role was
[introduced](#3107), the OnCaller
role didn't keep the permission to use this feature.
Also, being an OnCaller, makes sense user can update their own
notification settings.

Related grafana/support-escalations#7840.
  • Loading branch information
matiasb authored Oct 11, 2023
1 parent 88f9f11 commit ae85ce3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## Unreleased

### Added

- Update plugin OnCaller role permissions ([#3145](https://github.com/grafana/oncall/pull/3145))

## v1.3.43 (2023-10-05)

### Added
Expand Down
4 changes: 3 additions & 1 deletion grafana-plugin/src/plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -317,12 +317,13 @@
{
"role": {
"name": "OnCaller",
"description": "Grants read access to everything in OnCall. In addition, grants edit access to Alert Groups and Schedules",
"description": "Grants read access to everything in OnCall. In addition, grants edit access to Alert Groups, Schedules and own settings",
"permissions": [
{ "action": "plugins.app:access", "scope": "plugins:id:grafana-oncall-app" },

{ "action": "grafana-oncall-app.alert-groups:read" },
{ "action": "grafana-oncall-app.alert-groups:write" },
{ "action": "grafana-oncall-app.alert-groups:direct-paging" },

{ "action": "grafana-oncall-app.integrations:read" },
{ "action": "grafana-oncall-app.escalation-chains:read" },
Expand All @@ -336,6 +337,7 @@
{ "action": "grafana-oncall-app.notifications:read" },
{ "action": "grafana-oncall-app.notification-settings:read" },
{ "action": "grafana-oncall-app.user-settings:read" },
{ "action": "grafana-oncall-app.user-settings:write" },
{ "action": "grafana-oncall-app.other-settings:read" }
]
},
Expand Down

0 comments on commit ae85ce3

Please sign in to comment.