Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
03/11/2012 03:54:27 PM (12 years ago)
Author:
boonebgorges
Message:

Improvements to link construction and filters in the Groups component:

  • Fixes arguments being passed to bp_groups_get_total_groups_sql filter
  • Passes additional arguments to various group link filters
  • Sweeps through link concatenation in the groups component, to ensure that bp_get_group_permalink is used wherever possible (allowing for centralized filters in plugins)
  • Corrects some inline documentation
  • Fixes the permissions logic in bp_groups_adminbar_admin_menu(), so that super admins and group admins are able to see the group-specific dropdown when using the BuddyBar
  • Fixes #4071. Props travel-junkie
File:
1 edited

Legend:

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

    r5689 r5903  
    2424        return false;
    2525
    26     // Don't show this menu to non site admins or if you're viewing your own profile
    27     if ( !current_user_can( 'edit_users' ) || !bp_current_user_can( 'bp_moderate' ) || ( bp_is_item_admin() && ! bp_is_item_mod() ) )
     26    // Only group admins and site admins can see this menu
     27    if ( !current_user_can( 'edit_users' ) && !bp_current_user_can( 'bp_moderate' ) && !bp_is_item_admin() )
    2828        return false; ?>
    2929
Note: See TracChangeset for help on using the changeset viewer.