# URLs for Group Message: Error for private groups

**URL:** <https://meta.discourse.org/t/urls-for-group-message-error-for-private-groups/70631>\
**Category:** Bug\
**Created:** [Septembre 23, 2017, 11:54 UTC](https://meta.discourse.org/t/urls-for-group-message-error-for-private-groups/70631 "2017-09-23T11:54:14Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Yuun](https://avatars.discourse-cdn.com/v4/letter/y/977dab/32.png) [@Yuun](https://meta.discourse.org/u/Yuun)\
**Post date:** [Septembre 23, 2017, 11:54 UTC](https://meta.discourse.org/t/urls-for-group-message-error-for-private-groups/70631/1 "2017-09-23T11:54:14Z")

</div>

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

### 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

---

_[View the full topic](https://meta.discourse.org/t/urls-for-group-message-error-for-private-groups/70631)._
