Commits

Liang Yong Rui  committed 11d0fc7

修复错误提示

  • Participants
  • Parent commits 757f571

Comments (0)

Files changed (1)

File SpringSecurityTaobaoGrailsPlugin.groovy

     }
 
     def doWithApplicationContext = { applicationContext ->
+        def userDetailsService = applicationContext.getBean('taobaoAuthenticationUserDetailsService')
+        if(!(userDetailsService instanceof TaobaoAuthenticationUserDetailsService)) {
+            return  
+        }
         def conf = SpringSecurityUtils.securityConfig
         if (!conf || !conf.active) {
             return