Skip to content

Commit

Permalink
fix: fix scope checks during logout
Browse files Browse the repository at this point in the history
  • Loading branch information
Pooya Parsa committed Feb 4, 2018
1 parent b58ca17 commit e2ebd97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/templates/auth.class.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e2ebd97

Please sign in to comment.