[buddypress-trac] [BuddyPress Trac] #8734: Introduce simple "Private Site" toggle

buddypress-trac noreply at wordpress.org
Sun Oct 16 14:21:08 UTC 2022


#8734: Introduce simple "Private Site" toggle
-----------------------------+-----------------------
 Reporter:  dcavins          |       Owner:  (none)
     Type:  feature request  |      Status:  assigned
 Priority:  normal           |   Milestone:  11.0.0
Component:  Core             |     Version:  10.4.0
 Severity:  normal           |  Resolution:
 Keywords:  has-patch        |
-----------------------------+-----------------------

Comment (by imath):

 Hi @dcavins @sbrajesh & @johnjamesjacoby

 Sorry for this late reply! I was pretty busy this week.

 I've improved the initial PR trying to take in account as much feedbacks
 as possible.

 1. Being able to "bypass" the capability check. Context information are
 now sent and plugin authors can use it to decide whether they should
 bypass it or not. Here's a
 [https://github.com/buddypress/buddypress/pull/25/files#r996447311 code
 example] to allow the members directory to be viewable by any user.
 2. I've used @dcavins first idea about redirecting the user to the login
 page when the BP Theme or BP Template pack does not include the
 `members/gate.php` template. For this case, I've improved the
 `bp_core_no_access...` function so that it's possible to add an error
 message more suitable for the context. You can test this fallback
 activating BP Default or the BP Legacy template pack.

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8734#comment:27>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list