From 6fa87d825845e2bee6f62746e287d4881e5cc245 Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Tue, 29 Mar 2022 14:49:36 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20api=E6=9D=83=E9=99=90=E9=AA=8C=E8=AF=81?= =?UTF-8?q?=E9=80=BB=E8=BE=91=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/io/dataease/auth/aop/DePermissionAnnotationHandler.java | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/src/main/java/io/dataease/auth/aop/DePermissionAnnotationHandler.java b/backend/src/main/java/io/dataease/auth/aop/DePermissionAnnotationHandler.java index b051f06ad5..cd676f3de4 100644 --- a/backend/src/main/java/io/dataease/auth/aop/DePermissionAnnotationHandler.java +++ b/backend/src/main/java/io/dataease/auth/aop/DePermissionAnnotationHandler.java @@ -41,6 +41,7 @@ public class DePermissionAnnotationHandler { DePermission[] dePermissions = annotation.value(); Object[] args = point.getArgs(); if (logical == Logical.AND) { + access = true; for (int i = 0; i < dePermissions.length; i++) { DePermission permission = dePermissions[i]; boolean currentAccess = access(args[permission.paramIndex()], permission, 0);