fixed UI permission related bug where Editors could not export their user iCal link (#1412)

# Which issue(s) this PR fixes

https://www.loom.com/share/c6da9a51786a483999b19eba94c7e2f5

## Checklist

- [ ] Tests updated (N/A)
- [ ] Documentation added (N/A)
- [x] `CHANGELOG.md` updated
This commit is contained in:
Joey Orlando 2023-02-24 16:27:11 +01:00 committed by GitHub
parent 10cf1055b1
commit 71f81f844a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View file

@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
- Fixed importing of global grafana styles ([672](https://github.com/grafana/oncall/issues/672))
- Fixed UI permission related bug where Editors could not export their user iCal link
### Changed

View file

@ -88,7 +88,7 @@ const ICalConnector = (props: ICalConnectorProps) => {
<Text type="secondary">
In case you lost your iCal link you can revoke it and generate a new one.
</Text>
<WithPermissionControl userAction={UserActions.OtherSettingsWrite}>
<WithPermissionControl userAction={UserActions.UserSettingsWrite}>
<Button
icon="trash-alt"
onClick={handleRevokeiCalLink}
@ -103,7 +103,7 @@ const ICalConnector = (props: ICalConnectorProps) => {
)}
</>
) : (
<WithPermissionControl userAction={UserActions.OtherSettingsWrite}>
<WithPermissionControl userAction={UserActions.UserSettingsWrite}>
<Button icon="plus" onClick={handleCreateiCalLink} className={cx('iCal-button')} variant="secondary">
Create iCal link
</Button>