Merge pull request #19144 from edx/ai/EDUCATOR-3581-discussion-loading-profile

Fix that discussions are loading in the profile view.
This commit is contained in:
Attiya Ishaque
2018-10-24 17:28:13 +05:00
committed by GitHub

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));
};