Skip to content

Commit

Permalink
update postApiTokenCheck to not cause exception when session is inval…
Browse files Browse the repository at this point in the history
…idated (auth failure)
  • Loading branch information
gschueler committed Jul 7, 2011
1 parent b6e9dfa commit da76a4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rundeckapp/grails-app/conf/AuthorizationFilters.groovy
Expand Up @@ -283,7 +283,7 @@ public class AuthorizationFilters {
}
postApiTokenCheck(controller:'user',action:'logout',invert:true){
after={
if(session.user && request.authenticatedToken){
if(request?.authenticatedToken && session && session?.user){
session.user=null
request.subject=null
}
Expand Down

0 comments on commit da76a4e

Please sign in to comment.