WordPress.org

Ready to get started?Download WordPress

Forums

Custom Content Type Manager
[resolved] Granular Permissions (5 posts)

  1. Dirty Bill
    Member
    Posted 1 year ago #

    Looking for how to set publish permissions for custom types without enabling publishing permissions for standard posts. Is it here and I'm not getting it, or is this something I need to look at coding?

    http://wordpress.org/extend/plugins/custom-content-type-manager/

  2. fireproofsocks
    Member
    Plugin Author

    Posted 1 year ago #

    There have been some feature requests/bug-reports about permissions (e.g. https://code.google.com/p/wordpress-custom-content-type-manager/issues/detail?id=462), but I cannot answer your question off the top of my head with doing the usual trial and error routine. The CCTM offers a GUI to every argument accepted by the register_post_type() function (http://codex.wordpress.org/Function_Reference/register_post_type), so I think you can do exactly what you want here by editing your values for the capability type and the capabilities field. Check out the Advanced tab on your post-type definition.

    However, any time I've dealt with a project that required anything remotely custom with permissions, I quickly exhausted what was practical in WordPress and instead used MODX. Its attribute based access control system takes longer to configure, but it's so much more flexible and clean.

  3. Dirty Bill
    Member
    Posted 1 year ago #

    Ok, have tried to work on this one for awhile - the capabilities rules in the advanced tab do not appear to work at all. According to the examples and documentation I can find, this:

    [ Moderator Note: Please post code or markup snippets between backticks or use the code button. ]

    publish_posts=publish_weather_entries&edit_posts=edit_weather_entries&edit_others_posts=edit_others_weather_entries&edit_post=edit_weather_entry&delete_post=delete_weather_entry

    Should yield a custom post type that has a granular permission that I can assign with User Roll Editor. None of the capabilities show up. I've used URE (User Roll Editor) with other plugins, custom plugins I've done, etc. - always works. This seems to indicate that the Capabilities field on the advanced tab possibly isn't registering the entries properly.

    I'm not sure, but it currently means I have to give publish capabilities for posts to writers who should NOT have that capability when what I need them to have is the permission to publish a custom post type.

  4. fireproofsocks
    Member
    Plugin Author

    Posted 1 year ago #

    If you can write this up as a bug report or feature request with detailed steps to reproduce the problem and the requisite side-by-side comparison of what you expected to see vs. what you actually saw, then I can look at this further.

  5. fireproofsocks
    Member
    Plugin Author

    Posted 1 year ago #

    Closing this. No bug report and no ability to reproduce = no further action taken.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic