Fix that discussions are loading in the profile view.

This commit is contained in:
attiyaishaque
2018-10-23 12:38:59 +05:00
parent 3f6c7dd41d
commit fca88da078

View File

@@ -31,6 +31,9 @@
if (_.isUndefined(userId)) {
userId = this.user ? this.user.id : void 0;
}
if(_.isUndefined(this.roleIds)) {
this.roleIds = {}
}
staff = _.union(this.roleIds.Moderator, this.roleIds.Administrator);
return _.include(staff, parseInt(userId));
};