I’ve just invited two groups of people to join our Discourse using the bulk invite tool with a .csv file. It looks like they are being successfully added to the group.
However, the group permissions are “Trust level automatically granted to members when they’re added: 2”. But the users don’t seem to be receiving trust level 2 upon accepting the invitation.
1 Mi Piace
techAPJ
(Arpit Jalan)
12 Novembre 2017, 10:54am
3
I am unable to repro this issue locally.
@outofthebox sending you a PM now to investigate this on your site.
3 Mi Piace
techAPJ
(Arpit Jalan)
23 Novembre 2017, 5:19pm
4
Wow, this was a really tricky issue to debug. It was happening only when user was setting password when accepting invite.
PR created for @neil to verify:
master ← arpitjalan:invite-trust-level
merged 06:12PM - 23 Nov 17 UTC
https://meta.discourse.org/t/bulk-invites-and-trust-level/73535
If the user e… nters a password when accepting invite they were not granted trust level based on their group privileges. It was because `password_required` was set to `true` when creating user record and when the user was updated again when granting trust level the password validation was raising an error saying that the password is empty, this was because `password_required` was still set to `true`.
This commit fetches fresh user record after the user is created so that the user record can be updated successfully.
EDIT: PR merged.
Thanks for bringing this issue to our notice @outofthebox . The fix will be deployed on your instance soon.
7 Mi Piace
Hi @techAPJ , I really admire your perseverance in tracking this down and fixing it. Thank you!
3 Mi Piace
techAPJ
(Arpit Jalan)
Chiuso
24 Novembre 2017, 12:30pm
6
This topic was automatically closed after 18 hours. New replies are no longer allowed.