URLs for Group Message: Error for private groups

Just some probably low-priority weirdness I ran into last night. :slight_smile:

Expected Behavior:

Anyone who has permission to message a group (as defined on the group admin page) should be able to click on a link to generate a PM to that group.

Actual Behavior:

If someone with permission to message a group but not see it clicks a link to generate a PM, they get a box with the generic “Sorry, an error has occurred” message.

Note that this is specific to using a link to create the message - said user can still manually open up a PM, add the group to the PM, and send them the message without issue.

Repro:

  1. Create a group with restricted visibility but that everyone is able to message
  2. With a user that can’t see but can message the group, click on a URL to generate a group message
  3. “Sorry, an error has occured”. Repro complete!
    3a. No errors in /log or /sidekiq
5 个赞