[buddypress-trac] [BuddyPress Trac] #9162: Prevent users to join a group before its visibility has been set by the creator

buddypress-trac noreply at wordpress.org
Sun May 26 04:56:55 UTC 2024


#9162: Prevent users to join a group before its visibility has been set by the
creator
--------------------------------------+---------------------
 Reporter:  imath                     |       Owner:  imath
     Type:  defect (bug)              |      Status:  closed
 Priority:  normal                    |   Milestone:  14.0.0
Component:  Groups                    |     Version:  1.0
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |
--------------------------------------+---------------------
Changes (by imath):

 * owner:  (none) => imath
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"13874" 13874]:
 {{{
 #!CommitTicketReference repository="" revision="13874"
 Groups: joining a group needs to wait for group status to be defined

 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 in `groups_join_group()`.

 Fixes #9162
 Closes https://github.com/buddypress/buddypress/pull/294
 }}}

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/9162#comment:2>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list