Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
09/27/2017 09:08:35 AM (9 years ago)
Author:
djpaul
Message:

Core: when checking for bp_moderate capability, use bp_current_user_can().

Fixes #7598

Props meitar for initial patch.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-groups/classes/class-bp-groups-group.php

    r11604 r11703  
    17661766         *
    17671767         * Will include hidden groups in the count only if
    1768          * current_user_can( 'bp_moderate' ).
     1768         * bp_current_user_can( 'bp_moderate' ).
    17691769         *
    17701770         * @since 1.6.0
Note: See TracChangeset for help on using the changeset viewer.