fix: #2239
All checks were successful
Build & Deploy on Dev / build (push) Successful in 48s
All checks were successful
Build & Deploy on Dev / build (push) Successful in 48s
This commit is contained in:
parent
1696890f74
commit
8a649086f7
3 changed files with 242 additions and 164 deletions
|
|
@ -305,6 +305,22 @@ class CheckAuth {
|
|||
public async PermissionOrgUserUpdate(req: RequestWithUser, system: string, profileId: string) {
|
||||
return await this.PermissionOrgByUser(req, system, "UPDATE", profileId);
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
export default CheckAuth;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue