From a13c68a16ad5122af8367690b014566248d28ed3 Mon Sep 17 00:00:00 2001 From: smallchill Date: Thu, 10 Jan 2019 16:31:13 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20=E4=BF=AE=E5=A4=8DAuthFun=E5=88=A4?= =?UTF-8?q?=E6=96=AD=E8=A7=92=E8=89=B2=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/org/springblade/core/secure/auth/AuthFun.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/blade-core-secure/src/main/java/org/springblade/core/secure/auth/AuthFun.java b/blade-core-secure/src/main/java/org/springblade/core/secure/auth/AuthFun.java index 5b65c48..343b783 100644 --- a/blade-core-secure/src/main/java/org/springblade/core/secure/auth/AuthFun.java +++ b/blade-core-secure/src/main/java/org/springblade/core/secure/auth/AuthFun.java @@ -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; }