fix(系统设置): 修复创建项目时权限拦截的问题
--bug=1015603 --user=刘瑞斌 【系统设置】创建项目接口工作空间ID为空可成功创建 https://www.tapd.cn/55049933/s/1218162
This commit is contained in:
parent
84df53f115
commit
7aa46fceec
|
@ -3,6 +3,7 @@ package io.metersphere.security;
|
|||
import io.metersphere.commons.utils.SessionUtils;
|
||||
import org.apache.commons.lang3.ArrayUtils;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.apache.commons.lang3.reflect.FieldUtils;
|
||||
import org.apache.commons.lang3.reflect.MethodUtils;
|
||||
import org.apache.shiro.aop.AnnotationResolver;
|
||||
import org.apache.shiro.aop.MethodInvocation;
|
||||
|
@ -64,7 +65,7 @@ public class MsPermissionAnnotationMethodInterceptor extends PermissionAnnotatio
|
|||
return false;
|
||||
}
|
||||
//获取这个类的所有属性
|
||||
Field[] fields = obj.getClass().getDeclaredFields();
|
||||
Field[] fields = FieldUtils.getAllFields(obj.getClass());
|
||||
boolean flag = false;
|
||||
//循环遍历所有的fields
|
||||
for (Field field : fields) {
|
||||
|
|
Loading…
Reference in New Issue