mirror of
https://github.com/hashicorp/vault.git
synced 2025-11-28 14:11:10 +01:00
Fix edit capabilities call in auth method (#14966)
* Fix edit capabilities call in auth method - Capabilities call was not getting triggered correctly as apiPath method was missing the correct context. * Added changelog
This commit is contained in:
parent
fd73653b9d
commit
361b213e6c
3
changelog/14966.txt
Normal file
3
changelog/14966.txt
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
```release-note:bug
|
||||||
|
ui: Fixes edit auth method capabilities issue
|
||||||
|
```
|
||||||
@ -116,9 +116,9 @@ export default attachCapabilities(ModelExport, {
|
|||||||
deletePath: apiPath`sys/auth/${'id'}`,
|
deletePath: apiPath`sys/auth/${'id'}`,
|
||||||
configPath: function (context) {
|
configPath: function (context) {
|
||||||
if (context.type === 'aws') {
|
if (context.type === 'aws') {
|
||||||
return apiPath`auth/${'id'}/config/client`;
|
return apiPath`auth/${'id'}/config/client`.call(this, context);
|
||||||
} else {
|
} else {
|
||||||
return apiPath`auth/${'id'}/config`;
|
return apiPath`auth/${'id'}/config`.call(this, context);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user