Skip to content

Commit 046d1dc

Browse files
authored
1124 viewers are not allowed in rotations (#1577)
# What this PR does Added additional filtering for roles 0 and 1 for rodations. Only Editors and Admins are allowed to be in rotation ## Which issue(s) this PR fixes #1124
1 parent ad8ec64 commit 046d1dc

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1616

1717
- Updated wording throughout plugin to use 'Alert Group' instead of 'Incident' ([1565](https://github.com/grafana/oncall/pull/1565),
1818
[1576](https://github.com/grafana/oncall/pull/1576))
19+
- Filtering for Editors/Admins was added to rotation form. It is not allowed to assign Viewer to rotation ([1124](https://github.com/grafana/oncall/issues/1124))
1920

2021
### Fixed
2122

grafana-plugin/src/components/UserGroups/UserGroups.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ const UserGroups = (props: UserGroupsProps) => {
110110
key={items.length}
111111
showSearch
112112
placeholder="Add user"
113-
href="/users/?filters=true"
113+
href="/users/?roles=0&roles=1&filters=true"
114114
value={null}
115115
onChange={handleUserAdd}
116116
showError={showError}

0 commit comments

Comments
 (0)