Skip to content

Commit afbc662

Browse files
joy4egdrew-gross
authored andcommitted
fix gettings user roles from cache (#2034)
1 parent 7e868b2 commit afbc662

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Auth.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ Auth.prototype._loadRoles = function() {
9999
return cacheAdapter.role.get(this.user.id).then((cachedRoles) => {
100100
if (cachedRoles != null) {
101101
this.fetchedroles = true;
102+
this.userRoles = cachedRoles;
102103
return Promise.resolve(cachedRoles);
103104
}
104105

0 commit comments

Comments
 (0)