Skip to:
Content

BuddyPress.org

Opened 12 years ago

Closed 8 years ago

Last modified 8 years ago

#4789 closed enhancement (fixed)

Allow default admin menu in Groups component to be editiable.

Reported by: dennissmolek's profile DennisSmolek Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.6.0
Component: Groups Keywords:
Cc:

Description

Currently when you use the default groups component there is no way to remove any of the subnav items under the admin tab.

For example:
My client wants to remove the "Delete" function from the admin menu for non site admins. They can change other admin parts but she doesnt want them to be able to do this. Currently there is no way to resolve this easily without removing the core function totally. (bp_group_admin_tabs)

I suggest either passing an exclude option when calling the function or running a filter with an array of included tabs.

Yes, its not hard to copy/paste the code without the tabs but its a ton of extra unnecessary code.

Change History (4)

#1 @DennisSmolek
12 years ago

  • Version set to 1.7

#2 @boonebgorges
12 years ago

  • Keywords needs-patch added
  • Milestone changed from Awaiting Review to Future Release

Good idea. It would be nice if we used our own API for this - bp_core_new_subnav_item(). DennisSmolek, want to take a swing at a patch?

#3 @dcavins
8 years ago

  • Keywords needs-patch removed
  • Resolution set to fixed
  • Status changed from new to closed
  • Version changed from 1.7 to 2.6.0

The navigation API, introduced in r10745, v2.6, addresses this.

#4 @slaFFik
8 years ago

  • Milestone Future Release deleted
Note: See TracTickets for help on using tickets.