[buddypress-trac] [BuddyPress Trac] #8550: "Invitations" tab visible to users when they're not able to send invitations.
buddypress-trac
noreply at wordpress.org
Wed Nov 24 17:56:34 UTC 2021
#8550: "Invitations" tab visible to users when they're not able to send
invitations.
--------------------------+-----------------------
Reporter: niftythree | Owner: dcavins
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 10.0.0
Component: Groups | Version: 1.0
Severity: normal | Resolution:
Keywords: 2nd-opinion |
--------------------------+-----------------------
Comment (by dcavins):
I'm attaching a patch that adds a new function
`bp_get_groups_invitations_allowed()`. This centralizes the check if group
invitations are enabled generally or not, rather than tying it directly to
whether the friends component is enabled. This offers the advantage that a
dev could choose to disable invitations even if they want to have
friendships enabled. (Or disable them entirely if using Nouveau.)
@imath please make sure I've got the check right for Nouveau. Thanks!
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8550#comment:8>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list