Skip to content
Permalink
Browse files
fix(core): always return boolean form hasScope
  • Loading branch information
pi0 committed Dec 26, 2019
1 parent a7bbd8d commit a2da3a4775266aee859c48763b3c3788efe08f02
Showing 1 changed file with 1 addition and 1 deletion.
@@ -387,7 +387,7 @@ export default class Auth {
const userScopes = this.$state.user && getProp(this.$state.user, this.options.scopeKey)

if (!userScopes) {
return undefined
return false
}

if (Array.isArray(userScopes)) {

0 comments on commit a2da3a4

Please sign in to comment.