Fix a bug #1617 with permissions for telegram user settings (#2075)

# What this PR does

Changes a required role for telegram user settings from Admin to Editor.

## Which issue(s) this PR fixes

closes https://github.com/grafana/oncall/issues/1617

## Checklist

- [x] Unit, integration, and e2e (if applicable) tests updated
- [ ] Documentation added (or `pr:no public docs` PR label added if not
required)
- [x] `CHANGELOG.md` updated (or `pr:no changelog` PR label added if not
required)
This commit is contained in:
Alexander Cherepanov 2023-06-01 16:08:39 +06:00 committed by GitHub
parent 62a42438e5
commit e66fe67174
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View file

@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## Unreleased
### Fixed
- Fix a bug with permissions for telegram user settings by @alexintech ([#2075](https://github.com/grafana/oncall/pull/2075))
## v1.2.34 (2023-05-31)
### Added

View file

@ -40,7 +40,7 @@ const TelegramInfo = observer((_props: TelegramInfoProps) => {
return (
<WithPermissionControlDisplay
userAction={UserActions.OtherSettingsWrite}
userAction={UserActions.UserSettingsWrite}
message="You do not have permission to perform this action. Ask an admin to upgrade your permissions."
>
{telegramConfigured || !store.hasFeature(AppFeature.LiveSettings) ? (