Fixing typo in _loadRoles which prevents caching of roles. (#2063)

This commit is contained in:
Blayne Chard
2016-06-16 17:22:23 +12:00
committed by Drew
parent ae0ba7b5a9
commit 2eb861db66
2 changed files with 84 additions and 1 deletions

View File

@@ -98,7 +98,7 @@ Auth.prototype._loadRoles = function() {
var cacheAdapter = this.config.cacheController;
return cacheAdapter.role.get(this.user.id).then((cachedRoles) => {
if (cachedRoles != null) {
this.fetchedroles = true;
this.fetchedRoles = true;
this.userRoles = cachedRoles;
return Promise.resolve(cachedRoles);
}