FIX: Don't memoize the currentUser in case some plugins use it too early

This commit is contained in:
Robin Ward 2017-05-16 16:35:18 -04:00
parent 763f156d91
commit 733b0009cb
1 changed files with 1 additions and 2 deletions

View File

@ -28,7 +28,6 @@ class PluginApi {
constructor(version, container) { constructor(version, container) {
this.version = version; this.version = version;
this.container = container; this.container = container;
this._currentUser = container.lookup('current-user:main');
this.h = h; this.h = h;
} }
@ -37,7 +36,7 @@ class PluginApi {
* If the user is not logged in, it will be `null`. * If the user is not logged in, it will be `null`.
**/ **/
getCurrentUser() { getCurrentUser() {
return this._currentUser; return this.container.lookup('current-user:main');
} }
/** /**