Prerequisite: the permission "Subscribe to group" setting for a group is setted to
"Allow non-members to request membership to a group (approval required)".
In case of a not yet registered user chooses a group on the website registration form then, after form submission, user is immediately added to that group even if that group needs a membership approval.
User state is automatically set to "active" instead of "pending" bypassing the subscription request and approval from group administrator.
Expected result:
After user submits website form registration, 2 actions were expected:
- The default drupal website registration process goes ahead
- The "Are you sure you want to join the group XXX" page have to be shown to the user as well as the "request message" input textarea and final "join" button.
Thank you very much for working on this bug.
Comment | File | Size | Author |
---|---|---|---|
#10 | 1873194-og-register-pending-10.patch | 8.36 KB | amitaibu |
#4 | 1873194-og-register-pending-4.patch | 4.47 KB | amitaibu |
Comments
Comment #1
MXTI think this bug should be considered as a final release blocker because introduces a big architectural inconsistency.
Comment #2
amitaibuYeah, it's a hard one. Assigning yo myself unless someone else is going to work on it.
Comment #3
amitaibuTagging
Comment #4
amitaibuPatch allows OG-register to pass the correct membership state via the field values.
Note that we will not deal with showing pending messages/ subscription pages, as there might be multiple groups being selected on registration. If you want something more sophisticated to happen, patches are welcome..
Still needs tests.
Comment #5
MXTTESTED:
Trying to register a new user and subscribing to a group: (where approval is required):
1) When I go to /user/register I receive the following warning:
2) After submitting registration form I receive the above warning again
3) Final result: new user STATE is correctly setted to 'pending'
Thank you very much!
Comment #6
amitaibuHave you patched it against the dev release?
Comment #7
MXTyes, I always download latest dev before applying patch
I don't know if this is usefull: cardinality is setted to 1 for my users (they can subscribe to only one group), indeed I have a select in form registration form (not a multivalue select).
Comment #8
amitaibuProbably your ER-prepopulate is not updated to latest dev.
Comment #9
MXTYou are right: after upgrading the warning does not appear anymore.
Comment #10
amitaibuAdded test.
Comment #11
amitaibuCommitted.
Comment #13
held69 CreditAttribution: held69 commentedI see that the patch is committed however still having this behaviour with
7.x-2.4+9-dev
Under admin/config/group/permissions/mygroupnode
permissions are set to "Subscribe to group
Allow non-members to request membership to a group (approval required)."
As non member i can apply for membership on registration page.
Member becomes active at once, skipping the pending state.