forked from github/dataease
Merge pull request #1993 from dataease/pr@dev@fix_api_auth_logic
fix: api权限验证逻辑修复
This commit is contained in:
commit
1104d33bf9
@ -41,6 +41,7 @@ public class DePermissionAnnotationHandler {
|
|||||||
DePermission[] dePermissions = annotation.value();
|
DePermission[] dePermissions = annotation.value();
|
||||||
Object[] args = point.getArgs();
|
Object[] args = point.getArgs();
|
||||||
if (logical == Logical.AND) {
|
if (logical == Logical.AND) {
|
||||||
|
access = true;
|
||||||
for (int i = 0; i < dePermissions.length; i++) {
|
for (int i = 0; i < dePermissions.length; i++) {
|
||||||
DePermission permission = dePermissions[i];
|
DePermission permission = dePermissions[i];
|
||||||
boolean currentAccess = access(args[permission.paramIndex()], permission, 0);
|
boolean currentAccess = access(args[permission.paramIndex()], permission, 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user