• Resolved georgecourt

    (@georgecourt)


    Hello! Thank you in advance,
    I have created a new Custom Post Type, named it “Faculty”, and added my fields. Everything is working great with Elementor! I need to give each faculty member editing rights to ONLY their specific page.

    John Doe can only edit website.com/john-doe
    Jane Doe can only edit website.com/jane-doe
    etc.

    Next, I created a new Role “Full-time Faculty” and checked everything, for troubleshooting purposes. (I set up a test user, and gave “Full-time Faculty” access) I thought I would than be able to go to the “Faculty” pod for John Doe, and change the Author to “John Doe”, but the user does not show up in the Author dropdown.

    I can’t figure it out. Am I way off? ANY help would be GREATLY appreciated!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor Jim True

    (@jimtrue)

    Here’s our documentation page on dealing with Roles & Capabilities:
    https://docs.pods.io/advanced-topics/roles-capabilities-in-wordpress/

    This is an area we don’t play other than giving you the tools to configure what capabilities are available for your post types and taxonomies. Management of those capabilities is outside the scope of our plugin as that kind of stuff is better handled by the plugins that do that.

    Thread Starter georgecourt

    (@georgecourt)

    Understood Jim, thanks for the reply. I will look into the recommended plugin.

    Thread Starter georgecourt

    (@georgecourt)

    Hi again, just wanted to add – after doing some further investigating – that this is a bug with WordPress:

    https://blog.netgloo.com/2014/05/20/assigning-user-with-custom-role-as-author-to-posts-in-wordpress/

    Plugin Contributor Jim True

    (@jimtrue)

    That’s from 2014, are you sure about that?

    Thread Starter georgecourt

    (@georgecourt)

    Yes, this is a long standing bug. I’ve read through this, with a reply as recent as 7 days ago. (the bug was reported 8 years ago!)

    https://core.trac.www.ads-software.com/ticket/16841

    I did get your roles to work, without doing anything in those articles.
    Here are the steps:

    Create a new custom role.
    Create a new user, but give them “Editor” rights.
    Go to the page that you want them to be able to edit, and choose them in the Author dropdown box. Save the page.
    Go back to their user page, and now select the custom role.

    If you go back to their page, you will see that they are still set as the page editor.

    I’ve tested this with two test-users, and everything works as I need it to.

    The only 2 roles I needed to give was “read” and “edit_published_facultys”. (replace facultys with your CPT)

    I also had to go into Advanced Options/user capability and choose Custom Capability, and below that put in “faculty” – and also check the box under that for Additional User Capabilities.

    • This reply was modified 5 years, 11 months ago by georgecourt.
    • This reply was modified 5 years, 11 months ago by georgecourt.
    Plugin Contributor Jim True

    (@jimtrue)

    @georgecourt I’ll see if we can get this added to that Roles & Capabilities docs as a head’s up.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Roles & Capabilities – allow one user access to one page?’ is closed to new replies.