This commit is contained in:
parent
02f06486ed
commit
45e6e2bd5d
3 changed files with 264 additions and 92 deletions
|
|
@ -269,6 +269,20 @@ class CheckAuth {
|
|||
}
|
||||
}
|
||||
|
||||
public async checkDna(request: RequestWithUser, keycloakId: any) {
|
||||
try {
|
||||
const result = await new CallAPI().GetData(
|
||||
request,
|
||||
`/org/finddna-by-keycloak/${keycloakId}`,
|
||||
false
|
||||
);
|
||||
|
||||
return result;
|
||||
} catch (error) {
|
||||
console.error("Error calling API:", error);
|
||||
throw error;
|
||||
}
|
||||
}
|
||||
|
||||
public async PermissionCreate(req: RequestWithUser, system: string) {
|
||||
return await this.Permission(req, system, "CREATE");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue