UI/Only show form values if have read access (#14794)
* only show value in edit form if has read capabilities * revert messing with form * delete secret data from secret * add check for selected version * remove added line * add changelog
This commit is contained in:
parent
95555b9dd4
commit
bd7a61b32f
|
@ -0,0 +1,3 @@
|
|||
```release-note:bug
|
||||
ui: Fix KV secret showing in the edit form after a user creates a new version but doesn't have read capabilities
|
||||
```
|
|
@ -129,6 +129,9 @@ export default class SecretCreateOrUpdate extends Component {
|
|||
return secretData
|
||||
.save()
|
||||
.then(() => {
|
||||
if (!this.args.canReadSecretData && secret.selectedVersion) {
|
||||
delete secret.selectedVersion.secretData;
|
||||
}
|
||||
if (!secretData.isError) {
|
||||
if (isV2) {
|
||||
secret.set('id', key);
|
||||
|
|
Loading…
Reference in New Issue