Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
08/29/2011 11:07:41 PM (14 years ago)
Author:
boonebgorges
Message:

Respect 'disable avatar upload' option within the Groups component. Fixes #3520. Props r-a-y

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-groups/bp-groups-screens.php

    r4961 r5052  
    545545    if ( bp_is_groups_component() && bp_is_action_variable( 'group-avatar', 0 ) ) {
    546546
    547         if ( !$bp->is_item_admin )
     547        // If the logged-in user doesn't have permission or if avatar uploads are disabled, then stop here
     548        if ( !$bp->is_item_admin || (int)bp_get_option( 'bp-disable-avatar-uploads' ) )
    548549            return false;
    549550
Note: See TracChangeset for help on using the changeset viewer.