Skip Navigation

[Resolved] Only allow authors to edit posts

The Toolset Community Forum is closed, for technical support questions, please head on to our Toolset Professional Support (for paid clients), with any pre-sale or admin question please contact us here.

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

Problem:
How can I make sure that only the Author of a post can edit that post with the CRED Form I created for this purpose?

Solution:
This is done by setting the correct capability in Access > CRED forms > Edit Posts with (CRED Form)

You will set the capability for "Edit Own your_post_type with CRED Form "your_form"
This setting allows only the selected Roles to edit their own (and only their own) Posts with CRED.

Relevant Documentation:
https://toolset.com/documentation/user-guides/access-control-for-cred-forms/

This support ticket is created 7 years, 2 months ago. There's a good chance that you are reading advice that it now obsolete.
This is the community support forum for Types plugin, which is part of Toolset. Toolset is a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients and people who registered for Types community support can post in it.

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 2 replies, has 2 voices.

Last updated by andrewB-7 7 years, 2 months ago.

Assisted by: Beda.

Author
Posts
#483070

Hi there and thank you for your time.

I need to make sure that the following use case happens. Please can you confirm that this is possible with Toolset and Cred, and how...

Users register at different user levels on the site. In this example, say they register as user role NEW AUTHOR.

Everyone who registers as user role NEW AUTHOR is allowed to make posts to the NEW AUTHOR BLOG (a custom post type created with Types plugin).

These posts when published are visible to anyone visiting the site, whether or not they are logged in, but crucially only people with the NEW AUTHOR user role are allowed to create the posts.

They should be able to create these posts from the front end, and also edit them from the front end.

So far, I know how to do all of this with Toolset.

What I need to make sure, however, is that only the creator of each NEW AUTHOR BLOG POST is able to EDIT that post.

That is to say: not everyone with the role of NEW AUTHOR (many people have that role) should be able to edit every NEW AUTHOR BLOG POST. Only the actual creator of any post should be able to edit it.

I hope I have explained that well, and that you are able to help me.

I thank you for you time, and look forward to hearing back from you.

Very best wishes,
Andrew

#483187

1. Users register at different user levels on the site. In this example, say they register as user role NEW AUTHOR.

Yes, this is possible with Access and CRED.

You create a new Role in Access, then create a New User Form with CRED that creates "New Authors" on submit.
https://toolset.com/documentation/user-guides/cred-user-forms/
https://toolset.com/documentation/user-guides/managing-wordpress-admin-capabilities-access/

2. Everyone who registers as user role NEW AUTHOR is allowed to make posts to the NEW AUTHOR BLOG (a custom post type created with Types plugin).

This is possible with Access and CRED (if the submission should happen in the Front End)
- If you want to control the backend only:
https://toolset.com/documentation/user-guides/setting-access-control/
- If you want to control Front End Post Forms:
https://toolset.com/documentation/user-guides/access-control-for-cred-forms/

3. These posts when published are visible to anyone visiting the site, whether or not they are logged in, but crucially only people with the NEW AUTHOR user role are allowed to create the posts.

This is possible within Access, by setting the Read capability for all those Post Types, but controlling the CRED forms so only Authors can add/edit new/old posts

4. What I need to make sure, however, is that only the creator of each NEW AUTHOR BLOG POST is able to EDIT that post.

This is done by setting the correct capability in Access > CRED forms > Edit Posts with (CRED Form)

#483235

Thank you so much for the excellent support, Beda. I really appreciate it.

Best wishes,
Andrew.

The forum ‘Types Community Support’ is closed to new topics and replies.

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.