Skip to:
Content

bbPress.org

Opened 10 years ago

Closed 10 years ago

#1470 closed defect (fixed)

access to forums marked as private

Reported by: elfin Owned by: johnjamesjacoby
Milestone: 2.0 Priority: highest
Severity: normal Version:
Component: Front-end Keywords:
Cc: elfin

Description

tested in WP3.1 and logged out:

Widget for replies and topics still display forum posts from Forums marked as private.

The forum page itself correctly stops access, however the individual threads can still be viewed.

Attachments (1)

private_forum.diff (4.7 KB) - added by GautamGupta 10 years ago.
Stops direct access to topics and replies. Todo for widgets (/WP_Query)

Download all attachments as: .zip

Change History (11)

#1 @PeteMall
10 years ago

  • Milestone Plugin deleted
  • Resolution set to worksforme
  • Status changed from new to closed

Works for me with WordPress 3.1 and the plugin svn head.

#2 @christofian
10 years ago

I still have the problem, though...

Using wordpress 3.1 and the latest install of the plugin.

#3 @christofian
10 years ago

  • Milestone set to Plugin
  • Priority changed from normal to highest
  • Resolution worksforme deleted
  • Status changed from closed to reopened

@GautamGupta
10 years ago

Stops direct access to topics and replies. Todo for widgets (/WP_Query)

#4 @GautamGupta
10 years ago

Attached a patch which sets a 404 when a private forum or topics/replies of a private forum are viewed directly.

#5 @johnjamesjacoby
10 years ago

The widget portion of this relies heavily on a WordPress core patch. See: http://core.trac.wordpress.org/ticket/13927

#6 @johnjamesjacoby
10 years ago

Working around this now using WordPress 3.1 meta queries. Should have a fix committed tonight.

#7 @johnjamesjacoby
10 years ago

  • Owner set to johnjamesjacoby
  • Status changed from reopened to new

#8 @johnjamesjacoby
10 years ago

(In [3014]) Add meta_query's to topic and reply widget queries. See #1470.

#9 @johnjamesjacoby
10 years ago

(In [3015]) Add meta_query's to bbp_get_user_topics_started() to exclude hidden forums. See #1470.

#10 @johnjamesjacoby
10 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [3016]) Tweak the forum, topic, and reply template loops to support hidden forums. This uses advanced meta_query's to restrict results based on the expected context, user capabilities, and forum visibility. Fixes #1470.

Note: See TracTickets for help on using tickets.