Invited users cannot be pre-assigned to a group if invited by a group owner (neither admin nor moderator)

Priority/Severity: normal(?)

Platform: all (I assume). Tested with Discourse 3.6.0-beta1-dev

Description:

There are two places to create an invite:

  • main menu
  • within a group page

As an admin or moderator I can create an invite within the group page. Opening the “link options“ within the pop-up dialog the respective group is pre-selected, thus invited people end up in the group directly. That’s great.

If I as a group owner and normal user (member of a group having rights to create invites) create a new invite on a group page the “link options“ part is missing the option to pre-select a group.

Expected behavior

As a group owner and normal user (having rights to create invites) creating an invite from a group page, the pop-up dialog shall contain the possibility to pre-select (a) group(s) and be prefilled with the respective group. The drop-down shall contain all groups the user has rights to create invites for.

Reproducible steps:

  1. log in as admin
  2. create invite from within a group page
  3. observe, that within the “link options” a group-field is available, with the respective group being pre-selected
  4. observe, that the invited user is added to the pre-selected group.
  5. be happy :slight_smile:
  6. log in as a normal user (being a group owner and being member of a group having rights to create invites)
  7. create invite from within a group page you are owner of
  8. observe, that within the “link options” no group-field is available
  9. observe, that the invited user is not added to any group.
  10. be unhappy :frowning:

Thanks for your work! :slight_smile:

PS: It seemed, that this has worked four years ago.
PPS: There is also a feature request pending for this. But after thinking through this, for me it’s more a bug than a feature request as the button I’m talking about is within the group page (I’m not meaning the button in the main navigation) (plus the behavior for the button is intransparently different for moderators/admins).