Merge pull request #1862 from dataease/pr@v1.8@fix_proxy_permission

fix: 代理权限视图报错
This commit is contained in:
fit2cloud-chenyw 2022-03-02 10:12:17 +08:00 committed by GitHub
commit 2cf50fd484
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,5 @@
package io.dataease.auth.aop;
import java.lang.reflect.Array;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.util.Arrays;
@ -60,7 +59,7 @@ public class DePermissionProxyHandler {
}
private PermissionProxy getProxy(Object arg, DePermissionProxy annotation, int layer) throws Exception {
PermissionProxy result = null;
if(null == arg) return null;
String value = annotation.value();
Class<?> parameterType = arg.getClass();
if (arg instanceof PermissionProxy) {