fix gettings user roles from cache (#2034)
This commit is contained in:
@@ -99,6 +99,7 @@ Auth.prototype._loadRoles = function() {
|
||||
return cacheAdapter.role.get(this.user.id).then((cachedRoles) => {
|
||||
if (cachedRoles != null) {
|
||||
this.fetchedroles = true;
|
||||
this.userRoles = cachedRoles;
|
||||
return Promise.resolve(cachedRoles);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user