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:
parent
10cf1055b1
commit
71f81f844a
2 changed files with 3 additions and 2 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue