Skip to:
Content

bbPress.org

Ticket #2726: 2726.diff

File 2726.diff, 523 bytes (added by netweb, 6 years ago)
  • src/includes/common/functions.php

     
    791820                return true;
    792821        }
    793822
    794         // Bail if author is keymaster
    795         if ( ! empty( $author_id ) && bbp_is_user_keymaster( $author_id ) ) {
     823        // Pointless moderating a post that the moderator can self approve
     824        if ( ! empty( $author_id ) && user_can( $author_id, 'moderate' ) ) {
    796825                return true;
    797826        }
    798827