Fix that discussions are loading in the profile view.
This commit is contained in:
@@ -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));
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user