1
0
Fork 0
mirror of https://github.com/buddypress/buddypress.git synced 2026-07-22 20:56:55 +08:00
buddypress/tests/phpunit/testcases/groups
Mathieu Viet 7a2fce24eb 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



git-svn-id: https://buddypress.svn.wordpress.org/trunk@13874 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
2024-05-26 04:56:49 +00:00
..
functions PHPUnit: set $groups_template prop in BP_Tests_Get_Groups_Param 2022-10-06 01:47:25 +00:00
template Improve PHP 8.2 compatibility 2023-02-10 03:12:09 +00:00
activity.php Groups: improve group activity moderation delegation to admins & mods 2024-05-24 05:43:34 +00:00
avatars.php Use static factory method throughout PHPUnit tests. 2017-11-03 19:44:10 +00:00
cache.php Groups: joining a group needs to wait for group status to be defined 2024-05-26 04:56:49 +00:00
class-bp-group-extension.php Fully deprecate bp_nav & bp_options_nav BP globals 2023-06-25 17:18:41 +00:00
class-bp-group-member-query.php Update BP_Group_Member_Query for Invitation API compatibility. 2019-08-12 20:43:44 +00:00
class-bp-groups-group.php Improve PHP 8.2 compatibility 2023-02-10 03:12:09 +00:00
class-bp-groups-member.php Groups: joining a group needs to wait for group status to be defined 2024-05-26 04:56:49 +00:00
functions.php Eventually include inactive users in group's members count 2022-11-07 20:32:51 +00:00
notifications.php Groups: improve group membership management functions 2024-05-25 04:47:42 +00:00
template.php BP Rewrites: optimize the code used to build URLs 2023-06-18 04:11:04 +00:00
types.php Fully enjoy Yoast’s PHPUnit polyfills 2022-08-13 08:58:51 +00:00
user_can.php Invitations: Allow invitations to public groups. 2019-08-12 20:45:50 +00:00