mirror of
https://gitee.com/smallc/blade-tool.git
synced 2026-07-10 18:39:44 +08:00
🐛 修复AuthFun判断角色的bug
This commit is contained in:
parent
cf2c785df5
commit
a13c68a16a
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user