forked from github/dataease
fix: api权限验证逻辑修复
This commit is contained in:
parent
479a32ba12
commit
6fa87d8258
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user