[buddypress-trac] [BuddyPress Trac] #7280: Need a filter for bp_core_can_edit_settings()
buddypress-trac
noreply at wordpress.org
Fri Oct 7 18:13:49 UTC 2016
#7280: Need a filter for bp_core_can_edit_settings()
-------------------------+--------------------------------------
Reporter: modemlooper | Owner: imath
Type: enhancement | Status: new
Priority: low | Milestone: Awaiting Review
Component: Navigation | Version: 2.6.3
Severity: trivial | Keywords: dev-feedback 2nd-opinion
-------------------------+--------------------------------------
Or a better way to filter bp_moderate.
There is no way to allow a user that is not a site admin to access a users
profile to edit content passed through bp_moderate check.
Example, have a site that has member type teacher who would want to edit a
users profile avatar but the tab is blocked. You can ->nav-edit_nav and
change user_has_access which displays the tab but when you click tab you
get redirected.
The only way to actually view the tab is to filter bp_current_user_can and
that opens the user to anything available to that cap. Not ideal when you
want to be specific on what they can access.
a filter on $access = bp_core_can_edit_settings()
or right before core nav items are built
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7280>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list