mirror of
https://github.com/chillzhuang/blade-tool
synced 2025-01-06 04:55:33 +08:00
🐛 修复AuthFun判断角色的bug
This commit is contained in:
parent
cf2c785df5
commit
a13c68a16a
@ -68,8 +68,10 @@ public class AuthFun {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
String[] roles = Func.toStrArray(userRole);
|
String[] roles = Func.toStrArray(userRole);
|
||||||
if (CollectionUtil.contains(roles, role)) {
|
for (String r : role) {
|
||||||
return true;
|
if (CollectionUtil.contains(roles, r)) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user