Changeset 4961 for trunk/bp-groups/bp-groups-actions.php
- Timestamp:
- 08/10/2011 06:32:02 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-groups/bp-groups-actions.php
r4872 r4961 103 103 bp_core_redirect( bp_get_root_domain() . '/' . bp_get_groups_root_slug() . '/create/step/' . $bp->groups->current_create_step . '/' ); 104 104 } 105 106 // Set the invite status 105 106 // Set the invite status 107 107 // Checked against a whitelist for security 108 108 $allowed_invite_status = apply_filters( 'groups_allowed_invite_status', array( 'members', 'mods', 'admins' ) ); 109 109 $invite_status = in_array( $_POST['group-invite-status'], (array)$allowed_invite_status ) ? $_POST['group-invite-status'] : 'members'; 110 110 111 111 groups_update_groupmeta( $bp->groups->new_group_id, 'invite_status', $invite_status ); 112 112 }
Note: See TracChangeset
for help on using the changeset viewer.