Skip to:
Content

BuddyPress.org

Changes between Initial Version and Version 1 of Ticket #8139, comment 75


Ignore:
Timestamp:
05/04/2021 09:32:51 PM (3 months ago)
Author:
dcavins
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #8139, comment 75

    initial v1  
    11I've just added a patch that centralizes some of the invitations screen access logic to make it more consistent between the `bp_members_invitations_setup_nav()` and `bp_members_admin_bar_add_invitations_menu()` implementations.
    22
    3 I've also added a couple of new `user_can` capabilities to allow plugins to modify the access. For instance, I'm building a plugin that allows users to choose characteristics of who can send invites, like maybe only site admins can, or only members who have belonged to the site for more than a week. This change allows access to the "send" screen even if the user can't actually send, so they can be shown an error message if desired. The core BP behavior is not changed: users who can't send invites can't reach the send invites screen.
     3I've also added a couple of new `user_can` capabilities to allow plugins to modify the access. For instance, I'm building a plugin that allows users to choose characteristics of who can send invites, like maybe only site admins can, or only members who have belonged to the site for more than a week. This change allows access to the "send" screen even if the user can't actually send, so they can be shown an error message if desired. The core BP behavior is not changed: users who can't send invites can't reach the send invites screen. But a plugin could allow access to the send screen and still set "can send invites" to false.
    44
    55Thanks for your feedback!