Skip to content

Commit

Permalink
add more perm check
Browse files Browse the repository at this point in the history
  • Loading branch information
yash-rajpal committed Oct 3, 2023
1 parent 3259539 commit 8ce4d28
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ Meteor.startup(() => {
return false;
}

return uid !== user._id ? hasPermission('start-discussion-other-user') : hasPermission('start-discussion');
return uid !== user._id ? hasPermission('start-discussion-other-user', room._id) : hasPermission('start-discussion', room._id);
},
order: 1,
group: 'menu',
Expand Down

0 comments on commit 8ce4d28

Please sign in to comment.