Is there a way to setup capabilities conditions to certain roles?
Inspecting BuddyPress I found some references to capabilities like bp_members_send_invitation
or functions like bp_user_can_create_groups
but is there a recommended way to implement restrictions on features?
For example if I only want to allow authors or above to use private messaging but not subscribers-role level users ?