mirror of
https://github.com/discourse/discourse.git
synced 2025-02-16 08:15:00 +00:00
FIX: 'currentUser' is a property of the 'widget'
This commit is contained in:
parent
347e3e5a46
commit
06e3b25d04
@ -19,8 +19,8 @@ export default class PostCooked {
|
||||
|
||||
if (decoratorHelper) {
|
||||
this.decoratorHelper = decoratorHelper;
|
||||
if (decoratorHelper.widget && decoratorHelper.currentUser) {
|
||||
this.currentUser = decoratorHelper.currentUser;
|
||||
if (decoratorHelper.widget && decoratorHelper.widget.currentUser) {
|
||||
this.currentUser = decoratorHelper.widget.currentUser;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user