UPDATE : This issue is now potentially resolved
When attempting to write the studies WordPress was performing a check against current_user_can
for edit_post
, and this was returning a false. Even with edit_post
capability set, it was failing to map this correctly. Setting 'map_meta_cap' => true,
when registering the custom post type resolved this issue.
This project is a plugin which installs a custom post type - based on the tutorial here.
After installing the plugin - a subscriber with what appears to be appropriate privilages is able to create a study post record, but unable to submit it for review.
Install the plugin into a wordpress site.As an administrator, the plugin grants all permissions to the administrator user.Administrator can create and publish studies.Create a subscriber userNotice that the user has nothing - and can't add studies.Install the Capability Manager Enhanced pluginSwitch oto the Administrator user, and load the Capability Manager Enhanced pluginload the Subscriber role - it should look something like this :Now set the edit permission for the subscriber user - the subscriber can now edit studies.Switch to the subscriber user - note that the menu now shows a studies optionSubscriber can click on Studies option, and can see studies that have already been createdSubscriber can create a new study - a subscriber has no publish permission, so they can only submit for review.Clicking on the submit for review button presents the following screen.