web/admin: always override send method instead of assigning (#5426)
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
@ -34,14 +34,14 @@ export class ApplicationCheckAccessForm extends Form<{ forUser: number }> {
|
||||
return t`Successfully sent test-request.`;
|
||||
}
|
||||
|
||||
send = async (data: { forUser: number }): Promise<PolicyTestResult> => {
|
||||
async send(data: { forUser: number }): Promise<PolicyTestResult> {
|
||||
this.request = data.forUser;
|
||||
const result = await new CoreApi(DEFAULT_CONFIG).coreApplicationsCheckAccessRetrieve({
|
||||
slug: this.application?.slug,
|
||||
forUser: data.forUser,
|
||||
});
|
||||
return (this.result = result);
|
||||
};
|
||||
}
|
||||
|
||||
resetForm(): void {
|
||||
super.resetForm();
|
||||
|
Reference in New Issue
Block a user