Skip to content
Browse files

GRAILSPLUGINS-2166

  • Loading branch information...
1 parent ab96bd6 commit 811f1f77842f3dd6cb9627ec9b92c1e698da353d @burtbeckwith burtbeckwith committed May 12, 2010
Showing with 4 additions and 4 deletions.
  1. +4 −4 SpringSecurityCoreGrailsPlugin.groovy
View
8 SpringSecurityCoreGrailsPlugin.groovy
@@ -99,7 +99,7 @@ import org.codehaus.groovy.grails.plugins.springsecurity.WebExpressionVoter
class SpringSecurityCoreGrailsPlugin {
- String version = '0.3'
+ String version = '0.3.1'
String grailsVersion = '1.2.2 > *'
List observe = ['controllers']
List loadAfter = ['controllers', 'services', 'hibernate']
@@ -265,7 +265,7 @@ class SpringSecurityCoreGrailsPlugin {
accessDecisionManager = ref('accessDecisionManager')
securityMetadataSource = ref('objectDefinitionSource')
}
- if (conf.securityConfigType == SecurityConfigType.Annotation) {
+ if (conf.securityConfigType.name() == 'Annotation') {
objectDefinitionSource(AnnotationFilterInvocationDefinition) {
roleVoter = ref('roleVoter')
authenticatedVoter = ref('authenticatedVoter')
@@ -282,7 +282,7 @@ class SpringSecurityCoreGrailsPlugin {
}
}
}
- else if (conf.securityConfigType == SecurityConfigType.Requestmap) {
+ else if (conf.securityConfigType.name() == 'Requestmap') {
objectDefinitionSource(RequestmapFilterInvocationDefinition) {
roleVoter = ref('roleVoter')
authenticatedVoter = ref('authenticatedVoter')
@@ -293,7 +293,7 @@ class SpringSecurityCoreGrailsPlugin {
}
}
}
- else if (conf.securityConfigType == SecurityConfigType.InterceptUrlMap) {
+ else if (conf.securityConfigType.name() == 'InterceptUrlMap') {
objectDefinitionSource(InterceptUrlMapFilterInvocationDefinition) {
roleVoter = ref('roleVoter')
authenticatedVoter = ref('authenticatedVoter')

0 comments on commit 811f1f7

Please sign in to comment.
Something went wrong with that request. Please try again.