fix gettings user roles from cache (#2034)

This commit is contained in:
Yaroslav Syrytsia
2016-06-12 12:43:11 +03:00
committed by Drew
parent 7e868b2dcc
commit afbc662dcd

View File

@@ -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);
}