Skip to:
Content

Opened 4 years ago

Closed 2 years ago

Last modified 2 years ago

#2348 closed enhancement (duplicate)

WP Roles & Capabilities - BP integration

Reported by: DJPaul Owned by: DJPaul
Milestone: Priority: normal
Severity: normal Version:
Component: Core Keywords:
Cc:

Description

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 4 years ago.
sample
demo1.patch (1.2 KB) - added by DJPaul 4 years ago.
sample

Download all attachments as: .zip

Change History (10)

DJPaul4 years ago

sample

DJPaul4 years ago

sample

comment:1 DJPaul4 years ago

Sorry, the .patch version has syntax highlighting :)

comment:2 wpmuguru4 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.

comment:3 DJPaul4 years ago

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

comment:4 DJPaul3 years ago

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

Oven is on.

comment:5 DJPaul3 years ago

  • Milestone changed from 1.3 to 1.4

comment:6 DJPaul3 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.

comment:7 boonebgorges2 years ago

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

See #3740 for further discussion.

comment:8 johnjamesjacoby2 years ago

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