Skip Navigation

[Resolved] Enable custom post type editing for contributor

This support ticket is created 7 years, 5 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 4.08 hours from now. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- - 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00
- - - - - - -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

This topic contains 13 replies, has 2 voices.

Last updated by Beda 6 years, 11 months ago.

Assisted by: Beda.

Author
Posts
#532143

I am trying to:
Allow a single user, which is a "contributor", and cannot be more than that, to be able to have full rights, including editing / deleting / publishing a custom post type created with types.

I allowed this user full control on the custom post type on the access admin area.

This user is able to edit the custom post type, except when the post is published.

What should I do ?

Thanks a lot

Charles

#532365
Choose an user.png
The Settings.png

I set up a quick local test according to your elaborated details.

1. A Post Type made with Toolset Types (it's all native default settings)
2. A User, of role "Contributor".
3. In Toolset Access > Post Types > my_custom_post_type I gave all the rights to this one user only.

I attached some screenshots that show how to do that.

Then, I logged in as this Contributor User and added new Posts in my Custom Post Type.
I edited them, deleted them, previewed them, edited after publishing...
This all works fine unless one thing:
The Preview.

That is a known BUG:
https://toolset.com/forums/topic/cannot-preview-changes-to-existing-posts-with-access-plugin-enables/

So far, it all works fine for me on the Latest Toolset Plugins, with no other SoftWare on the site.

Could you confirm that your settings are alike mine?

#532456

Hello Beda and thanks for your answer during the weekend !

OK all these things work for me too. Trouble begins when I try to edit a post published by another user.

My contributor, having all the rights on that CPT, should have the right to edit / delete another user's post of this CPT. How would I do ?
Thanks a lot !

Charles

#532629

You are right.

Not even the global settings work in this case.

Only when you bring native Posts under the same type of control, then it works.
Of course, I chose to "Managed by Access" for my Custom Type.

I reported this as a BUG and will start debugging it so to bring it up to the DEV.

Thank you for the heads up.

#532833

Hello Beda !
Thanks for the precisions, and thanks for reporting it.

Does this mean that if I change a setting ont he native Post post type for this user, it will then work for the cpt ?

Thanks a lot
Charles

#532842
3.png
Capture d’écran 2017-06-05 à 15.14.43.png
Capture d’écran 2017-06-05 à 15.12.28.png

Dear Beda,

I think I managed to find the solution, and that's because of you!
I gave the user "Joe" special right for native Posts. And now the rights are ok for the cpt and for the posts. (first two screenshots).

And then I deleted the special rights for this user (screenshot 3.png), and it still works OK !

Weird, but well, it works as it should... There certainly must be a reason.

Please keep me updated when this bug is resolved. Should I mark this issue as "resolved" ?
Thanks a lot

Charles

#536507

Hello Beda,
unfortunately, this setting does not seem to work on the long-term. Removing the rights on native Posts removes them too on CPT.
The problem is I don't want the user to have rights on native posts, only on some CPT.
I saw that giving all rights on native Posts gives rights on all post types. That's annoying.
Thanks for keeping me updated.
Charles

#536508

I observed a strange behaviour on children cpt. Are the rights on this cpt dependant from their father's ?

#537029

Hello Beda, Perhaps I should use another ticket, but I have an issue on this peculiar problem (perhaps more linked to wp-types than wp-access) :
As an editor, I cannot edit custom some post type created by another. All the CPT I've created behave corrrectly, except for this one.
The only difference I can think of is this CPT being a child type of two other CPT.
What do you say ?
Charles

#537084
partenaires_cpt_config.png

Here is a screenshot of this CPT's config
Looking forward to having news from you,
Charles

#537097
#540468

I'm sorry to not have followed up here.

The Fix is planned for Toolset Access 2.5, and the solution (workaround) is as Noman pointed out in the other ticket.

Thank you for the patience.

#576516

Meanwhile we published an Erratum for this issue:
https://toolset.com/errata/contributors-have-no-edit-permission-on-others-custom-post-types/

There is a workaround.

Thank you for the patience.

#599520

There is a workaround in the erratum, and it will be updated as soon there are better solutions.
https://toolset.com/errata/contributors-have-no-edit-permission-on-others-custom-post-types/

Hence I close this ticket here.