diff --git a/src/Auth.js b/src/Auth.js index 634a839b9a..9599f62846 100644 --- a/src/Auth.js +++ b/src/Auth.js @@ -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); }