From abcab1e9806cf5a2169ff9da185b4d491889cae5 Mon Sep 17 00:00:00 2001
From: monkeyk7 <zhao@idsmanager.com>
Date: Fri, 10 May 2019 11:07:20 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9RoLE=E7=9A=84=E9=94=99?=
 =?UTF-8?q?=E8=AF=AF=E9=85=8D=E7=BD=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../com/monkeyk/sos/config/OAuth2ServerConfiguration.java     | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main/java/com/monkeyk/sos/config/OAuth2ServerConfiguration.java b/src/main/java/com/monkeyk/sos/config/OAuth2ServerConfiguration.java
index 5b356d3..df6d17e 100644
--- a/src/main/java/com/monkeyk/sos/config/OAuth2ServerConfiguration.java
+++ b/src/main/java/com/monkeyk/sos/config/OAuth2ServerConfiguration.java
@@ -67,7 +67,7 @@ public class OAuth2ServerConfiguration {
                     .requestMatchers().antMatchers("/unity/**")
                     .and()
                     .authorizeRequests()
-                    .antMatchers("/unity/**").access("#oauth2.hasScope('read') and hasRole('ROLE_UNITY')");
+                    .antMatchers("/unity/**").access("#oauth2.hasScope('read') and hasRole('UNITY')");
 
         }
 
@@ -93,7 +93,7 @@ public class OAuth2ServerConfiguration {
                     .requestMatchers().antMatchers("/m/**")
                     .and()
                     .authorizeRequests()
-                    .antMatchers("/m/**").access("#oauth2.hasScope('read') and hasRole('ROLE_MOBILE')");
+                    .antMatchers("/m/**").access("#oauth2.hasScope('read') and hasRole('MOBILE')");
 
         }