From 04fe70f204216d13615562acad55beab25fb0a66 Mon Sep 17 00:00:00 2001 From: Eduard Tihomiorv Date: Fri, 14 Nov 2025 12:22:44 +0300 Subject: [PATCH] fix --- .../ru/micord/ervu/security/esia/service/EsiaAuthService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/main/java/ru/micord/ervu/security/esia/service/EsiaAuthService.java b/backend/src/main/java/ru/micord/ervu/security/esia/service/EsiaAuthService.java index a0c4f6d8..d8c7789f 100644 --- a/backend/src/main/java/ru/micord/ervu/security/esia/service/EsiaAuthService.java +++ b/backend/src/main/java/ru/micord/ervu/security/esia/service/EsiaAuthService.java @@ -285,11 +285,11 @@ public class EsiaAuthService { orgInfo = getOrgInfo(esiaAccessTokenStr); hasRole = ulDataService.checkRole(esiaAccessTokenStr); fileUploadAllowed = uploadAccessService.canUploadFiles(orgInfo.getOgrn()); - ervuId = getErvuId(prnOid, orgInfo); if (!hasRole) { LOGGER.error("The user with id = " + prnOid + " does not have the required role"); throw new LocalizedException("access_denied", MESSAGE_SOURCE); } + ervuId = getErvuId(prnOid, orgInfo); status = AuditConstants.SUCCESS_STATUS_TYPE; } catch (JsonProcessingException e) {