fix: api权限验证逻辑修复

This commit is contained in:
fit2cloud-chenyw 2022-03-29 14:49:36 +08:00
parent 479a32ba12
commit 6fa87d8258

View File

@ -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);