This commit is contained in:
Eduard Tihomiorv 2025-11-14 12:22:44 +03:00
parent 079cf09dad
commit 04fe70f204

View file

@ -285,11 +285,11 @@ public class EsiaAuthService {
orgInfo = getOrgInfo(esiaAccessTokenStr); orgInfo = getOrgInfo(esiaAccessTokenStr);
hasRole = ulDataService.checkRole(esiaAccessTokenStr); hasRole = ulDataService.checkRole(esiaAccessTokenStr);
fileUploadAllowed = uploadAccessService.canUploadFiles(orgInfo.getOgrn()); fileUploadAllowed = uploadAccessService.canUploadFiles(orgInfo.getOgrn());
ervuId = getErvuId(prnOid, orgInfo);
if (!hasRole) { if (!hasRole) {
LOGGER.error("The user with id = " + prnOid + " does not have the required role"); LOGGER.error("The user with id = " + prnOid + " does not have the required role");
throw new LocalizedException("access_denied", MESSAGE_SOURCE); throw new LocalizedException("access_denied", MESSAGE_SOURCE);
} }
ervuId = getErvuId(prnOid, orgInfo);
status = AuditConstants.SUCCESS_STATUS_TYPE; status = AuditConstants.SUCCESS_STATUS_TYPE;
} }
catch (JsonProcessingException e) { catch (JsonProcessingException e) {