private_groups_can_user_view_post() bug
-
Hi,
Great job with the plugin!
I wrote some code for a client connecting my bbpress-notify-no-spam plugin with yours (notifying only people who can view a forum) and found a bug in
includes/user-view-post.php
, line 48.if ( bbp_is_user_keymaster()) $can_view = true;
should really be
if ( bbp_is_user_keymaster($user_id)) $can_view = true;
as bbpress will use the current user if none is passed, and my check really wasn’t for the current user. You seem to not have had much trouble with it because you always call it to check on the current user.
I worked around the bug by using the filter, but it would be nice to not have to process it twice.
Cheers,
Vinny
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘private_groups_can_user_view_post() bug’ is closed to new replies.