mirror of
https://github.com/chillzhuang/blade-tool
synced 2024-11-05 10:09:32 +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