Browse Source

update:忽略权限值大小写

yonge 5 years ago
parent
commit
1a5ff13470

+ 1 - 1
mec-common/common-core/src/main/java/com/ym/mec/common/security/PermissionCheckService.java

@@ -21,7 +21,7 @@ public class PermissionCheckService {
 
 		for (String perm : permissions) {
 			for (GrantedAuthority authority : authorities) {
-				if (StringUtils.equals(perm, authority.getAuthority())) {
+				if (StringUtils.equalsIgnoreCase(perm, authority.getAuthority())) {
 					return true;
 				}
 			}