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
https://github.com/grafana/oncall/issues/1124
This commit is contained in:
Yulia Shanyrova 2023-03-20 14:52:58 +01:00 committed by GitHub
parent ad8ec64e34
commit 046d1dcbcf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -16,6 +16,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Updated wording throughout plugin to use 'Alert Group' instead of 'Incident' ([1565](https://github.com/grafana/oncall/pull/1565),
[1576](https://github.com/grafana/oncall/pull/1576))
- 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))
### Fixed

View file

@ -110,7 +110,7 @@ const UserGroups = (props: UserGroupsProps) => {
key={items.length}
showSearch
placeholder="Add user"
href="/users/?filters=true"
href="/users/?roles=0&roles=1&filters=true"
value={null}
onChange={handleUserAdd}
showError={showError}