🐛 修复AuthFun判断角色的bug

This commit is contained in:
smallchill 2019-01-10 16:31:13 +08:00
parent cf2c785df5
commit a13c68a16a

View File

@ -68,8 +68,10 @@ public class AuthFun {
return false;
}
String[] roles = Func.toStrArray(userRole);
if (CollectionUtil.contains(roles, role)) {
return true;
for (String r : role) {
if (CollectionUtil.contains(roles, r)) {
return true;
}
}
return false;
}