Summary:
If the option “Arrive at topic” is used in an invite, weird permissions issues happen.
Reproduction:
- create a group
specialgroup - set up a category
testcategory - add groups
trust_level_0andspecialgroup, both as See/Reply/Create* - create a topic in that category
- create an invite and set “arrive at topic” to the topic created in step 4
- sigh
- remove
specialgroupfrom the category permissions for now, so the category only hastrust_level_0as See/Reply/Create - try to create the invite again and set “arrive at topic” to the topic created in step 4
- see how things actually got worse
- be smart and try to set the category permissions to
logged_in_usersinstead oftrust_level_0 - learn that this does not make a difference
May be related
Variant on Invite link to private group, arrive at topic (private category) not working. This time it goes south during invite link creation.
*) it sounds like it does not make sense to have both groups but if you have a subcategory that only allows specialgroup, you must add that group to the parent category as well, because Discourse does not understand that trust_level_0 is always a superset.

