Permalink
Browse files

fix: fix scope checks during logout

  • Loading branch information...
pi0 committed Feb 4, 2018
1 parent b58ca17 commit e2ebd9785e45b9fe79fa69d3316a2a696026bb92
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/templates/auth.class.js
@@ -330,8 +330,8 @@ export default class Auth {
this.ctx.redirect(to)
}
hasScope (scope) {
const userScopes = getProp(this.state.user, this.options.scopeKey)
hasScope(scope) {
const userScopes = this.state.user && getProp(this.state.user, this.options.scopeKey)
if (!userScopes) {
return

0 comments on commit e2ebd97

Please sign in to comment.