• Resolved kit-coda

    (@kit-coda)


    I’m unsure if I’m missing a switch here, but I have an ACF-CPT working on a GeneratePress site and cannot add a new custom post under the Author role with a GP-Elements template. It seems to work fine under the Administrator. I’ve set the access boxes under the Unique Capabilities widget and still get a white screen of death.

    Also, is there anyway under PublishPress Permissions or Capabilities to restrict the Admin sub-menu “View” from showing everyone’s post in the archive loop rather than just the users? The restrict post list works great, but it’s defeated by the user selecting that menu option.

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Support Riza Maulana Ardiyanto

    (@rizaardiyanto)

    Hi @kit-coda

    Can you make sure that your Author has the “create” capability of that post type?

    Also, is there anyway under PublishPress Permissions or Capabilities to restrict the Admin sub-menu “View” from showing everyone’s post in the archive loop rather than just the users? The restrict post list works great, but it’s defeated by the user selecting that menu option.

    Are you referring on the backend (WP-admin) or on the frontend?

    Thanks,

    Thread Starter kit-coda

    (@kit-coda)

    Yes, the Author has the Create capability to this post type.

    The “View Items” is from the backend Admin Bar when selecting the “All Items Listing”

    Thanks for the quick response!

    • This reply was modified 5 months, 3 weeks ago by kit-coda.
    Thread Starter kit-coda

    (@kit-coda)

    Hello Riza…
    I narrowed the first problem down to a plugin conflict between PublishPress Permissions and a plugin I’m using named “User Posts Limit.” The plugin restricts the number of posts a user role can make by type over a select period. I’m only using Permissions to turn off “List other users’ uneditable posts.” If I turn off core control for the CPT-Item then I lose the restriction for the Author to only see just their posts. Otherwise, leaving it on kills the ability to add new items while using that plugin.

    I guess I can attempt to code in a function to restrict the number of posts per role unless you have any other suggestions with your plugins for that.

    Plugin Support Riza Maulana Ardiyanto

    (@rizaardiyanto)

    @kit-coda Do you might know how can we re-create this issue in a new fresh WordPress installation?

    I tested by having PublishPress Permissions and User Posts Limit, then I create new CPT, I’m still able to create new post on that CPT.

    Let me know if I missed some steps to reproduce the issue.

    Thread Starter kit-coda

    (@kit-coda)

    I’ll spin up a new test site in the morning with the work stack I’m using.

    Thread Starter kit-coda

    (@kit-coda)

    I created a fresh GeneratePress site with an ACF-CPT, User Posts Limit, and Permissions and Capabilities plugins. After adding a Post Limit restriction of 3, I could add one new post and none after that.

    Thread Starter kit-coda

    (@kit-coda)

    I should add that the user was set to Author and the only change other change then that to User Post Limits was made on checking off “List other users’ uneditable posts” in the Permissions plugin.

    Plugin Support Riza Maulana Ardiyanto

    (@rizaardiyanto)

    @kit-coda Could you confirm if this issue only happen on CPT from ACF-CPT?

    Or does this issue also happens on regular Posts/Pages?

    Thanks,

    Thread Starter kit-coda

    (@kit-coda)

    @rizaardiyanto I added the Capabilities for Author to Create Posts and set the User Post’s Limit to 3, and the result is the same as the ACF-CPT. I was allowed to create the first post, but I was not allowed to add any more.

    Plugin Support Riza Maulana Ardiyanto

    (@rizaardiyanto)

    @kit-coda Thanks for your detailed report. I’m able to replicate this issue. I’ve created a GitHub issue for this one so our developer can fix this in the future release: https://github.com/publishpress/PublishPress-Permissions/issues/1009

    Thanks,

    Thread Starter kit-coda

    (@kit-coda)

    Riza…

    Thanks for addressing the issue promptly. I’ll be watching to see an update. At this point I added a code snippet to modify the post filter. Not as elegant a solution, but will do for now.

    Plugin Support Riza Maulana Ardiyanto

    (@rizaardiyanto)

    Thanks for your report @kit-coda

    We appreciate you using our plugin! 🙂

Viewing 12 replies - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.