#9162 closed defect (bug) (fixed)
Prevent users to join a group before its visibility has been set by the creator
Reported by: | imath | Owned by: | imath |
---|---|---|---|
Milestone: | 14.0.0 | Priority: | normal |
Severity: | normal | Version: | 1.0 |
Component: | Groups | Keywords: | has-patch has-unit-tests |
Cc: |
Description
When the group create first step is completed, the group's status has not been defined by the group creator yet and defaults to public. As the group status & the invite status are set once the group create second step is completed, we need to wait for this step to be achieved to let users join the group being created otherwise it would be possible for a user to "pre-join" a private/hidden group. Checking if the invite status is set is the only way to make sure this second step has been completed. If it's not the case, no need to go further.
Change History (3)
Note: See
TracTickets for help on using
tickets.
Use the
invite_status
group meta to check the group create second step has been completed.Trac ticket: https://buddypress.trac.wordpress.org/ticket/9162