Users see error after clicking to Leave a Group

I have lots of groups defined, and my users have to belong to certain groups in order to have access to various categories in my site. My users get an error when they click to Leave a group. The most common error is:

You are not permitted to view the requested resource

Here’s my setup. In my group settings:

  • Visibility setting for group, Who can see this group? Logged on users
  • Visibility, Who can see this group’s members? Group owners, members and moderators
  • Membership, Access, Allow users to join the group freely (Not-checked)
  • Membership, Access, Allow users to leave the group freely (checked)
  • Membership, Access, Allow users to send membership requests (checked)

When a user visits the groups page (e.g., discourse.mysite.com/g), they’ll see the screen pasted below. When they click Leave, they have to confirm, and when they click Yes, they get the error. They are successfully removed from the group! But I hate that they see an error.

1 Like

I can replicate this. (863262a5de)

  • Create group (public, membership by request, leave freely)
  • TL2 Test_User requests to join group, and then leaves the group using any of the ‘leave’ options.
  • Asked to confirm, then recieves ‘You are not permitted to view the requested resource’
2 Likes

Thanks for raising this @clayg , we have this assigned out, an engineer will have a look this week.

I pushed a fix here :arrow_up: I will deploy your website after it’s merged.

2 Likes