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
ad3bf3173c
commit
459909ae33
|
@ -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…
Reference in New Issue