FIX: `LogsNotice` does not have `currentUser` attribute.

This commit is contained in:
Guo Xiang Tan 2016-03-08 16:18:10 +08:00
parent 712b7af6d5
commit db781d3349
1 changed files with 2 additions and 1 deletions

View File

@ -9,9 +9,10 @@ export default {
const siteSettings = container.lookup('site-settings:main');
const messageBus = container.lookup('message-bus:main');
const keyValueStore = container.lookup('key-value-store:main');
const currentUser = container.lookup('current-user:main');
LogsNotice.reopenClass(Singleton, {
createCurrent() {
return this.create({ messageBus, keyValueStore, siteSettings});
return this.create({ messageBus, keyValueStore, siteSettings, currentUser });
}
});
}