Passer la navigation

[Résolu] Front-end editing of Pending posts

This support ticket is created Il y a 2 weeks, 1 day. 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.

Ce sujet contient 0 réponses, a 1 voix.

Dernière mise à jour par neilR Il y a 2 weeks, 1 day.

Auteur
Publications
#2872999
View-rendered-for-Subscriber.jpg
View-rendered-for-Admin.jpg

Tell us what you are trying to do?
We have a workflow as follows:
1. Logged-in user with role 'Subscriber' can create a CPT 'Proposal', which is created with status 'Pending'
2. Admins will 'Publish' accepted Proposals (change post status from 'Pending'), at which point the item will be publicly viewable on the website.
3. 2. When logged in, the Subscriber can see a view that lists their proposals (via filter on post status).
This is all working fine.

I want the submitter to be able to edit their proposal, and have included [toolset-edit-post-link content_template_slug='pres-proposal-edit' target='self']Edit this submission[/toolset-edit-post-link] in the View, which generates Edit links perfectly well for admins, but doesn't generate a link for the Subscriber, for either a Pending or a Published post.

I have given the Subscriber role 'Edit own' permissions in Toolset Access, but this hasn't helped.

Is there a constraint on that shortcode which checks for a core WP capability that I need to give to the Subscriber role? Or is there are different constraint I should be aware of, and what's the solution?
Thanks.

#2873009

Apologies, forgot to set the correct permissions in Access for the form itself!