From 74132485962033f9e0ea4ae950c71baa1251f8b9 Mon Sep 17 00:00:00 2001 From: Giancarlo Panichi Date: Thu, 16 Feb 2023 12:07:38 +0100 Subject: [PATCH] ePASMed version 1.0.5 --- package.json | 2 +- pom.xml | 2 +- .../java/it/cnr/isti/epasmed/web/rest/sync/SyncResource.java | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index ea41cdd..7880d00 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "epasmed", - "version": "0.0.1-SNAPSHOT", + "version": "1.0.5", "description": "Description for epasmed", "private": true, "license": "UNLICENSED", diff --git a/pom.xml b/pom.xml index f7126db..0e8cd39 100755 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ it.cnr.isti.epasmed epasmed - 1.0.4 + 1.0.5 jar epasmed diff --git a/src/main/java/it/cnr/isti/epasmed/web/rest/sync/SyncResource.java b/src/main/java/it/cnr/isti/epasmed/web/rest/sync/SyncResource.java index dc0c878..c75198b 100755 --- a/src/main/java/it/cnr/isti/epasmed/web/rest/sync/SyncResource.java +++ b/src/main/java/it/cnr/isti/epasmed/web/rest/sync/SyncResource.java @@ -209,7 +209,8 @@ public class SyncResource { * */ @GetMapping("/sync/writesSingleTimeCards") - @PreAuthorize("hasAuthority(\"" + AuthoritiesConstants.ADMIN + "\",\"" + AuthoritiesConstants.USER + "\")") + @PreAuthorize("hasAuthority(\"" + AuthoritiesConstants.ADMIN + "\") or hasAuthority(\"" + AuthoritiesConstants.USER + + "\")") public ResponseEntity syncSingleWritesTimeCards(@RequestParam("year") String year, @RequestParam("month") String month, @RequestParam("fiscalCode") String fc) throws Exception { logger.info("REST request syncSingleWritesTimeCards)");