Skip to:
Content

BuddyPress.org

Changeset 13286


Ignore:
Timestamp:
06/25/2022 08:10:06 AM (2 years ago)
Author:
imath
Message:

Make the group's invites nav only reachable to users having invite cap

See #8715 (trunk)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-groups/classes/class-bp-groups-component.php

    r13202 r13286  
    726726                    'item_css_id'     => 'invite',
    727727                    'position'        => 70,
    728                     'user_has_access' => $this->current_group->user_has_access,
     728                    'user_has_access' => bp_groups_user_can_send_invites(),
    729729                    'no_access_url'   => $group_link,
    730730                );
Note: See TracChangeset for help on using the changeset viewer.