Fixing typo in _loadRoles which prevents caching of roles. (#2063)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user