Skip Navigation

[Resolved] unable to set non-admin user as author for cpt managed by Access

This thread is resolved. Here is a description of the problem and solution.

Problem:

Set custom user roles "Member" as author for a custom post type "Lawyer" managed by Access.

Solution:

you need to allow custom user role "Member" to publish the "Lawyer" posts, for example:

Dashboard-> Toolset->Access Control-> Post Types:

in section "Lawyer", row "Member", enable permissions: Publish, Delete own, Edit own

Relevant Documentation:

https://toolset.com/course-lesson/setting-access-control/

This support ticket is created 2 years, 6 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Our next available supporter will start replying to tickets in about 0.74 hours from now. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 8 replies, has 2 voices.

Last updated by matthewW-12 2 years, 6 months ago.

Assisted by: Luo Yang.

Author
Posts
#2369951

I am trying to: Set non-admin user as author for a cpt managed by Access

Link to a page where the issue can be seen:

I expected to see: full list of all users

Instead, I got: only admins and current author

I have tried disabling non-essential plugins and changing the theme to 2020 but it makes no difference. If I set the CPT to be not managed by Access, it works as expected.

#2370415

Hello,

I have tried the credentials you provided above, it is not valid. I get below error message:
Error: the password you entered for the username toolset is incorrect
Please check it.

You can also provide a copy of your website in below private message box, also point out the problem post URLs.
https://toolset.com/faq/provide-supporters-copy-site/

#2370657

Apologies, please try again with the same password. The CPT I was talking about is lawyers. To be more specific, I've noticed actually that it is not non-admins who do not appear on the author selector, it is the custom role Member, which is most of the site users (there is a user with role Author who does appear). Is there a permission for the Member role I need to enable?

#2370709

I've now tried creating a new role Member2 and copied permissions from the built-in Author role, and that works. So it seems to be something in the Member role. I then matched the permissions of Member2 to Member, and Member2 still works. So as a workaround I could go through and change the role of all the users on the Member role to a new Member role, but it would be nice to know what the problem is. And I am puzzled because it used to work, when I set up the site, and I haven't changed anything since with the roles.

#2371501

Thanks for the details, you need to allow custom user role "Member" to publish the "Lawyer" posts.
I have done below modifications in your website:
Dashboard-> Toolset->Access Control-> Post Types:
in section "Lawyer", row "Member", enable permissions: Publish, Delete own, Edit own
Test it here:
hidden link
I can see those users in the "Author" dropdown, please check if it is fixed, thanks

More help:
https://toolset.com/course-lesson/setting-access-control/

#2371591

Thanks. I think I had disabled that option because I don't want members to be able to publish their posts, only save drafts for review. In which case, is enabling that setting not an issue? And as I say, I'm pretty sure the author selector was working previously with that setting disabled.

#2371593

Sorry, see previous comment.

#2372205

According to WordPresss document:
https://wordpress.org/support/article/roles-and-capabilities/#author
It is required to allow "publish_posts" capability to author.

Please elaborate the questions with more details:
Is there any modifications in your website recently?
How can I see the this:
"Member" users display in the author dropdown even without "Publish" capability?
Please provide detail steps to reproduce the issue, thanks

#2372487

My issue is resolved now. Thank you!