Skip to:

Opened 14 years ago

Closed 13 years ago

Last modified 13 years ago

#2348 closed enhancement (duplicate)

WP Roles & Capabilities - BP integration

Reported by: djpaul's profile DJPaul Owned by: djpaul's profile DJPaul
Milestone: Priority: normal
Severity: normal Version:
Component: Core Keywords:


BP is currently lacking any use of the WP roles and capabilities system, apart from is_site_admin(). It would be nice to encapsulate some of the current is_site_admin() calls with a capability check. It can be built on going forward.

For example, you could add a capability to your WP Editors role to let them become "site group moderators" -- as in, BP Moderators of every group without having to be a member of the group.
The downside of being able to moderate every group in the current system requires you to be a member, which fills your own Activity Stream with lots of noise.

I've attached a very early patch showing the sorts of changes I'm thinking of and encourage feedback.

Attachments (2)

demo1.php (1.2 KB) - added by DJPaul 14 years ago.
demo1.patch (1.2 KB) - added by DJPaul 14 years ago.

Download all attachments as: .zip

Change History (10)

14 years ago


14 years ago


#1 @DJPaul
14 years ago

Sorry, the .patch version has syntax highlighting :)

#2 @wpmuguru
14 years ago

WordPress 3.0 has meta_caps. I recommend you look into using meta_caps instead of the route you have proposed here. Adding roles can get messy in a BP_ENABLE_MULTIBLOG install.

#3 @DJPaul
14 years ago

wpmuguru, do you have any documentation on meta_caps? I can't find much. Thanks.

#4 @DJPaul
14 years ago

  • Milestone changed from Future Release to 1.3
  • Owner set to DJPaul
  • Status changed from new to assigned

Oven is on.

#5 @DJPaul
14 years ago

  • Milestone changed from 1.3 to 1.4

#6 @DJPaul
13 years ago

  • Milestone changed from 1.6 to Future Release
  • Severity set to normal

Probably should aim to do this in 1.7, when we've a better plan for how/if/what/where post types may affect this.

#7 @boonebgorges
13 years ago

  • Resolution set to duplicate
  • Status changed from assigned to closed

See #3740 for further discussion.

#8 @johnjamesjacoby
13 years ago

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