• Resolved frankie1000

    (@frankie1000)


    Hello,
    I tried to assign a user role “Agentur” to users, that should only have access to one specific custom post type (“Veranstaltungen”) and should be able to create new posts/edit/deelte ONLY their own posts in this custom post type – nothing else.

    ACCESS LEVEL:
    I used the Access Level:

    a) Post type “Veranstaltungen”

    AND

    b) Authors = the ones with User level “Agentur”

    CAPABILITIES:
    In the capabilities, I denied access to almost everything, except:

    edit_posts (seems to show ALL post types, but deying this, does not show anything)
    edit_published_posts
    publish_posts
    read
    delete_published_posts
    delete_private_posts
    edit_private_posts
    read_private_posts
    edit_dashboard

    What do I do wrong? If I leave out edit_posts, it just shows me the Profile, that is it.

    Thx for your help!
    Franky

Viewing 1 replies (of 1 total)
  • Plugin Author Joachim Jensen

    (@intoxstudio)

    Hi,

    Capabilities and Access Conditions serve different purposes and are not combined. Access Conditions are applied only to the frontend, while capabilities work throughout the site (both Admin Dashboard and frontend).

    To limit write-access to specific posts, I recommend looking into this plugin: https://wordpress.org/plugins/press-permit-core/

    I hope this helps!

Viewing 1 replies (of 1 total)

The topic ‘Restrict user role to 1 custom post type’ is closed to new replies.