Ticket #2590: 2590.diff
| File 2590.diff, 1.4 KB (added by , 9 years ago) |
|---|
-
trunk/wordpress.org/public_html/wp-content/plugins/wporg-bbp-topic-resolution/inc/class-plugin.php
505 505 $post = get_post( $topic_id ); 506 506 } 507 507 508 if ( $user_id && $post && ( user_can( $user_id, 'moderate' ) || $user_id == $post->post_author ) ) {508 if ( $user_id && $post && ( user_can( $user_id, 'moderate', $topic_id ) || $user_id == $post->post_author ) ) { 509 509 $retval = true; 510 510 } else { 511 511 $retval = false; -
trunk/wordpress.org/public_html/wp-content/plugins/wporg-bbp-user-badges/inc/class-plugin.php
438 438 $user_id = bbp_get_reply_author_id(); 439 439 } 440 440 441 return ( user_can( $user_id, 'moderate' ) || ( ! $strict && bbp_is_user_keymaster( $user_id ) ) );441 return ( user_can( $user_id, 'moderate', get_queried_object_id() ) || ( ! $strict && bbp_is_user_keymaster( $user_id ) ) ); 442 442 } 443 443 }