fix
This commit is contained in:
parent
079cf09dad
commit
04fe70f204
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue