Resources

My Agape try

Your Agape try


Support Forum

You must be logged in to post Login Register

Search 
Search Forums:


 




Need help with permissions for custom posts

UserPost

9:53 pm
December 8, 2010


aidan

Member

posts 2

1

Hello,

I have got role scoper working as I want it for posts and pages but I'm having a problem with custom posts. I have a custom post type called Events. I am using categories to control the permissions. I have categories set up for different regions and I want to allow regional authors to only add posts and events for their own region (i.e. within the category that matches that region). I am using the same categories for both default post types and Events. So to set up the permissions I went to Roles > Categories and assigned the regional authors permissions for the category representing their region. This works fine with the normal posts but but if a regional author is logged in thay cannot add or edit Events. I want them to be able to add new events (only with the category matched to their region). I can't figure out what else I need to set in order to make this work. Any help greatly appreciated.

Thanks,

Aidan

11:01 pm
December 8, 2010


Kevin

Admin

posts 2503

2

In Roles > Categories, were you able to assign an "Event Author" role for the desired categories? If it's not present, you'll need to review your Roles > Realm settings, and possibly follow the directions behind the "problems?" link there.

12:28 am
December 9, 2010


aidan

Member

posts 2

3

Thanks for the quick response Kevin. Yes that was the problem and you lead me to the solution. I only had the roles:

Post Reader
Private Post Reader
Post Contributor
Post Author
Post Editor
Category Manager

and I was missing:

Event Reader
Private Event Reader
Event Contributor
Event Author
Event Editor

The Events checkbox did actually show up under roles > Options > Realm the Post Type Usage. I had looked at that Problems link before but thought it didn't apply since I was already seeing the Events checkbox at that point. But the solution was there - I needed to specify a priority of 1 when registering the Events custom post type. Once I did that, those 5 roles related to the Event type showed up, and checking one of those resolved my permissions issue.


Thanks for your help! Your role scoper plugin adds a lot of power to WordPress - great work!

Aidan


About the Agapetry forum

Currently Online:

14 Guests

Maximum Online: 150

Forums:

Groups: 2

Forums: 7

Topics: 1247

Posts: 5656

Members:

There are 1259 members

There are 1 guests


Kevin has made 2503 posts

Top Posters:

metal450 - 178

Ragnar - 108

YikYak - 70

whiteorb - 49

Daisy - 35

Administrator: Kevin | Moderators: Kevin