From afbc662dcdf7f6846c9a4dd8466c56effc155455 Mon Sep 17 00:00:00 2001 From: Yaroslav Syrytsia Date: Sun, 12 Jun 2016 12:43:11 +0300 Subject: [PATCH] fix gettings user roles from cache (#2034) --- src/Auth.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Auth.js b/src/Auth.js index 634a839b..9599f628 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); }