[buddypress-trac] [BuddyPress Trac] #7391: Can 'change' visibility on registration form even for fields marked "Enforce field visibility"
buddypress-trac
noreply at wordpress.org
Thu Dec 15 10:31:11 UTC 2016
#7391: Can 'change' visibility on registration form even for fields marked
"Enforce field visibility"
------------------------------------+--------------------
Reporter: maccast | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 2.7.4
Component: Extended Profile | Version: 2.7.2
Severity: normal | Resolution:
Keywords: dev-feedback has-patch |
------------------------------------+--------------------
Changes (by hnla):
* keywords: => dev-feedback has-patch
Comment:
A test patch taking the new function check and template update approach.
Creates a new function `bp_allow_profile_visibility_change()` & updates
template check to replace `bp_current_user_can(
'bp_xprofile_change_field_visibility' )` check.
This isn't necessarily the best option & have just considered a problem in
changing templates to effect this approach will leave unmodified templates
with the current problem *sigh*
We'll have to tackle the
`bp_xprofile_grant_bp_xprofile_change_field_visibility_for_logged_out_users()`
and fix that up to also check the vis change.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7391#comment:6>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list