mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-10-30 02:02:43 +00: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:
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'}`,
|
||||
configPath: function (context) {
|
||||
if (context.type === 'aws') {
|
||||
return apiPath`auth/${'id'}/config/client`;
|
||||
return apiPath`auth/${'id'}/config/client`.call(this, context);
|
||||
} else {
|
||||
return apiPath`auth/${'id'}/config`;
|
||||
return apiPath`auth/${'id'}/config`.call(this, context);
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user