[buddypress-trac] [BuddyPress Trac] #8794: Site membership requests: Create/change capability to approve requests

buddypress-trac noreply at wordpress.org
Sat Jan 14 13:12:41 UTC 2023


#8794: Site membership requests: Create/change capability to approve requests
-------------------------+-------------------------------------------------
 Reporter:  leorospo     |      Owner:  (none)
     Type:  feature      |     Status:  new
  request                |
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Core         |    Version:  11.0.0
 Severity:  normal       |   Keywords:  has-patch changes-requested 2nd-
                         |  opinion
-------------------------+-------------------------------------------------
 An admin is not able to allow custom roles to approve
 [https://codex.buddypress.org/administrator-guide/alternative-
 registration-workflows/#membership-requests-available-in-buddypress-10
 site membership requests]. This might be by design, however it would make
 sense to allow admins to have granular control over who can access the bp-
 signups tab in the user screen, and thus allow single users or custom
 roles to approve the site membership requests.

 This can be accomplished by **creating a new capability** or by **using
 bp_moderate** to check for premission. At the moment the functionality is
 mapped to {{{edit_users}}}, and it might not be desired to allow for that
 as well.




 {{{#!php

 <?php
 // file: class-bp-members-admin.php
 // line 109
 $this->capability = bp_core_do_network_admin() ? 'manage_network_users' :
 'edit_users';

 // proposed change
 $this->capability = bp_core_do_network_admin() ? 'manage_network_users' :
 'bp_moderate';

 }}}

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8794>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list