From ff434e0d28feb1b1d862db3199146fc11eedbec5 Mon Sep 17 00:00:00 2001 From: "lucio.lelii" Date: Fri, 30 Nov 2018 16:06:43 +0000 Subject: [PATCH] git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/Common/authorization-common-library@174491 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../authorization/library/aspect/AuthorizationAspect.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/gcube/common/authorization/library/aspect/AuthorizationAspect.java b/src/main/java/org/gcube/common/authorization/library/aspect/AuthorizationAspect.java index ebba86b..3c1b196 100644 --- a/src/main/java/org/gcube/common/authorization/library/aspect/AuthorizationAspect.java +++ b/src/main/java/org/gcube/common/authorization/library/aspect/AuthorizationAspect.java @@ -33,7 +33,7 @@ public class AuthorizationAspect { MethodSignature signature = (MethodSignature) joinPoint.getSignature(); Method method = signature.getMethod(); AuthorizationControl authAnn = (AuthorizationControl) method.getAnnotation(AuthorizationControl.class); - log.info("aspect before with annotation {} and value {} in method {}", authAnn.annotationType(), authAnn.actions(), authAnn.allowed(), method.getName()); + log.info("aspect before with annotation {} with action {}, allowed {} in method {}", authAnn.annotationType(), authAnn.actions(), authAnn.allowed(), method.getName()); String userId = AuthorizationProvider.instance.get().getClient().getId(); if (authAnn.allowed().length!=0 && !Arrays.asList(authAnn.allowed()).contains(userId)) throw new RuntimeException("user not allowed to call method "+method.getName());