Changeset 5942 for trunk/bp-groups/bp-groups-screens.php
- Timestamp:
- 03/23/2012 06:17:14 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-groups/bp-groups-screens.php
r5729 r5942 483 483 global $bp; 484 484 485 if ( bp_is_groups_component() && bp_is_action_variable( 'edit-details', 0) ) {485 if ( 'edit-details' == bp_get_group_current_admin_tab() ) { 486 486 487 487 if ( bp_is_item_admin() || bp_is_item_mod() ) { … … 515 515 global $bp; 516 516 517 if ( bp_is_groups_component() && bp_is_action_variable( 'group-settings', 0) ) {517 if ( 'group-settings' == bp_get_group_current_admin_tab() ) { 518 518 519 519 if ( ! bp_is_item_admin() ) … … 557 557 global $bp; 558 558 559 if ( bp_is_groups_component() && bp_is_action_variable( 'group-avatar', 0) ) {559 if ( 'group-avatar' == bp_get_group_current_admin_tab() ) { 560 560 561 561 // If the logged-in user doesn't have permission or if avatar uploads are disabled, then stop here … … 621 621 global $bp; 622 622 623 if ( bp_is_groups_component() && bp_is_action_variable( 'manage-members', 0) ) {623 if ( 'manage-members' == bp_get_group_current_admin_tab() ) { 624 624 625 625 if ( ! bp_is_item_admin() ) … … 736 736 global $bp; 737 737 738 if ( bp_is_groups_component() && bp_is_action_variable( 'membership-requests', 0) ) {738 if ( 'membership-requests' == bp_get_group_current_admin_tab() ) { 739 739 740 740 if ( ! bp_is_item_admin() || ( 'public' == $bp->groups->current_group->status ) ) … … 785 785 global $bp; 786 786 787 if ( bp_is_groups_component() && bp_is_action_variable( 'delete-group', 0) ) {787 if ( 'delete-group' == bp_get_group_current_admin_tab() ) { 788 788 789 789 if ( ! bp_is_item_admin() && !bp_current_user_can( 'bp_moderate' ) )
Note: See TracChangeset
for help on using the changeset viewer.