Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SecurityTagLib.groovy @ 118 #416

Closed
kszymko opened this issue Feb 12, 2016 · 1 comment
Closed

SecurityTagLib.groovy @ 118 #416

kszymko opened this issue Feb 12, 2016 · 1 comment

Comments

@kszymko
Copy link

kszymko commented Feb 12, 2016

On one of our gsp files we render:

userSex: '<view:loggedInUserInfo field="sex"/>'

which might have values: 1 or 0 and later on we have some logic which utilizes this variable.
Somehowe for female users (sex = 0) our tests were failing. So we started invastigating:

Looks like here is the problem:

grails-spring-security-core/grails-app/taglib/grails/plugin/springsecurity/SecurityTagLib.groovy @ 118

namely:

if (source) {

when we changed it to:

if (source != null) {

all our tests passed.

burtbeckwith added a commit that referenced this issue Mar 21, 2016
@burtbeckwith
Copy link
Contributor

Fixed in v3.0.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants