Skip to content
Snippets Groups Projects
Unverified Commit cc1898d1 authored by Attiya Ishaque's avatar Attiya Ishaque Committed by GitHub
Browse files

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

Fix that discussions are loading in the profile view.
parents 073df570 fca88da0
No related branches found
No related tags found
No related merge requests found
...@@ -31,6 +31,9 @@ ...@@ -31,6 +31,9 @@
if (_.isUndefined(userId)) { if (_.isUndefined(userId)) {
userId = this.user ? this.user.id : void 0; userId = this.user ? this.user.id : void 0;
} }
if(_.isUndefined(this.roleIds)) {
this.roleIds = {}
}
staff = _.union(this.roleIds.Moderator, this.roleIds.Administrator); staff = _.union(this.roleIds.Moderator, this.roleIds.Administrator);
return _.include(staff, parseInt(userId)); return _.include(staff, parseInt(userId));
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment