Skip to content

Commit

Permalink
Issue #295
Browse files Browse the repository at this point in the history
Corretto problema autorizzazione find pendenze per le API-Pendenza.
  • Loading branch information
pintorig committed Mar 4, 2021
1 parent d687cc0 commit 9603e2b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Expand Up @@ -3,6 +3,7 @@ Feature: Ricerca pagamenti
Background:

* callonce read('classpath:utils/api/v1/pendenze/bunch-pendenze.feature')
* callonce read('classpath:configurazione/v1/anagrafica_unita.feature')

Scenario: Ricerca pendenze applicazione star/star filtrati per data

Expand Down Expand Up @@ -279,7 +280,6 @@ And match response ==
Scenario: Ricerca pagamenti applicazione dominio1 con uo 1 e 2 e dominio2 filtrati per data

* def backofficeBaseurl = getGovPayApiBaseUrl({api: 'backoffice', versione: 'v1', autenticazione: 'basic'})
* def idUnitaOperativa2 = '12345678901_02'

Given url backofficeBaseurl
And path 'applicazioni', idA2A
Expand Down
Expand Up @@ -216,11 +216,11 @@ public Response pendenzeGET(Authentication user, UriInfo uriInfo, HttpHeaders ht
}

// Autorizzazione sulle UO
List<IdUnitaOperativa> uoAutorizzate = AuthorizationManager.getUoAutorizzate(user);
if(uoAutorizzate == null) {
throw AuthorizationManager.toNotAuthorizedExceptionNessunaUOAutorizzata(user);
}
listaPendenzeDTO.setUnitaOperative(uoAutorizzate);
// List<IdUnitaOperativa> uoAutorizzate = AuthorizationManager.getUoAutorizzate(user);
// if(uoAutorizzate == null) {
// throw AuthorizationManager.toNotAuthorizedExceptionNessunaUOAutorizzata(user);
// }
// listaPendenzeDTO.setUnitaOperative(uoAutorizzate);

// autorizzazione sui tipi pendenza
List<Long> idTipiVersamento = AuthorizationManager.getIdTipiVersamentoAutorizzati(user);
Expand Down

0 comments on commit 9603e2b

Please sign in to comment.