Skip Navigation

[Résolu] Views 2.5??

This support ticket is created Il y a 5 années et 4 mois. 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.

Aucun de nos assistants n'est disponible aujourd'hui sur le forum Jeu d'outils. Veuillez créer un ticket, et nous nous le traiterons dès notre prochaine connexion. Merci de votre compréhension.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

Ce sujet contient 12 réponses, a 2 voix.

Dernière mise à jour par julieP Il y a 5 années et 4 mois.

Assisté par: Nigel.

Auteur
Publications
#1299027

I'm looking to download Views 2.5 per errata https://toolset.com/errata/cred-edit-post-links-should-be-available-for-authors-of-drafts-and-private-posts/ but this isn't available in downloads (https://toolset.com/download/toolset-views/#changelog).

I've tried uploading the patch provided in errata instead but this hasn't changed anything. If I set the post status to publish, the link shows which I believe rules out any other issues affecting the display.

Please advise.

#1299145

Nigel
Supporter

Les langues: Anglais (English ) Espagnol (Español )

Fuseau horaire: Europe/London (GMT+00:00)

Hi Julie,

the link is there to download version 2.5, it's just below all the announcement text under New features and improvements, keep scrolling down.

But version 2.5 is very old, we are currently on 2.8.4, so I can't advise installing it and using it.

You are having the same problem as described in the erratum?

#1299903

Hi Nigel

Sorry yes, you're right; it's a bit confusing when really old errata links appear above support threads and I just saw '5' in the version number and thought there'd been another release without noticing the 8 was missing!

yes, I do have an instance where the link doesn't show if the post is draft status. I can't find any other similar recent threads but I might be the first to notice (unless there's something else going on for me). Are you able to easily see if you can replicate?

#1300179

Hi Nigel

After a bit more digging and testing with a new meagre site, I found the problem was to do with incorrect permissions within Access. These were imported using the Toolset export/import feature. The User's custom role had edit_others_posts enabled in the previous site so it looks like it dropped out during the import. This is something I've noticed before but haven't looked into this closely enough to be 100% sure. I don't currently have time to do this but it's on my list!

I've also noticed this: if a User's custom role has permission in Access to edit another User's posts using CRED, this only works if the post is published. For the custom role to be able to edit another's posts using CRED where the post status is draft, that custom role also needs to have edit_others_posts capability enabled. Is this expected/intended?

Thanks

#1300331

Nigel
Supporter

Les langues: Anglais (English ) Espagnol (Español )

Fuseau horaire: Europe/London (GMT+00:00)

Hi Julie

That's not what I found at all.

I'm using a new-ish test site with all current plugin versions (after yesterday's updates).

I created a custom role (which I copied from author, that cannot normally edit others' posts).

I brought a post type under Access control (tested both Posts and CPTs), and granted the alt-author role "Edit any" ability.

I then logged-in with a user with this role in another browser, and I was able to edit posts authored by a different user that had draft status.

On the Access settings page I had wondered whether it would be necessary to also grant the "Preview any" ability to edit drafts, but that wasn't necessary.

From my perspective, everything appeared to work as expected.

#1300385

Hi again

Are 'edit any' and 'preview any' new to the latest Views & Forms updates (cos I can't find them in the previous versions)? If so, are these role settings or form settings?

Thanks

#1300389

Nigel
Supporter

Les langues: Anglais (English ) Espagnol (Español )

Fuseau horaire: Europe/London (GMT+00:00)

Screenshot 2019-07-25 at 11.11.30.png

We're talking about Access settings, right?

#1300415

Yes we are and I can see now why I'm confused!

I use Access to manage Forms and Custom Roles only. So in my scenario, my custom role (based on Contributor) has 'Edit Others' set for the Form but the user with that role can only edit the draft post using the Form if I additionally check edit_others_posts (via Custom Roles > Change Permissions > Other Capabilities) for the custom role.

#1300423

Nigel
Supporter

Les langues: Anglais (English ) Espagnol (Español )

Fuseau horaire: Europe/London (GMT+00:00)

OK, so I've set up an Edit Form to test this on the front-end as well as the back-end, and I still see the same.

My alt-author user can edit another's draft posts as long as they have the "Edit any" setting for the post type in question.

Let me try with a role copied from Contributor...

#1300439

Nigel
Supporter

Les langues: Anglais (English ) Espagnol (Español )

Fuseau horaire: Europe/London (GMT+00:00)

It also seems to be working with an alternative Contributor role, as long as I set the permissions for the post type and the form, without the need to add any custom permissions, not sure why you are finding different...

You are using current plugin versions?

#1300579

Thank you for trying a few more things.

Just to clarify my setup: in Access Control under the Post Types tab, all standard & custom posts are set to 'Not managed by Access'. In the Toolset Forms tab, both post and user forms are managed by Access. Under the Custom Roles tab, I have created some custom roles. One of these roles has the 'Edit Others Custom Post Form XYZ' checked for a few forms. None of the Users have access to wp-admin, everything is created/amended on the frontend.

What happens if you mirror my setup (i.e. stop managing posts with Access)?

I haven't upgraded yet - I wanted to resolve/bring to a conclusion this matter first. Having said that, I have a basic, unimportant site where I've now upgraded, implemented some basic stuff to mirror my setup on the dev site so you can take a look (the issue for me is no different with latest versions). Would you like to provide private fields for log in to the site? I'll set up an admin role for you and give you the credentials for the test user too.

#1300641

Nigel
Supporter

Les langues: Anglais (English ) Espagnol (Español )

Fuseau horaire: Europe/London (GMT+00:00)

But you must manage posts with Access if you want to grant the ability to edit such posts to roles that wouldn't normally have it, which is the position you are in.

If you can alternately edit the custom role permissions directly such that they can edit the posts in question by applying the edit_others_posts permission, then great, you found what is required to let them manage such posts without having to manage the posts explicitly with Access.

No bugs, that's just what's expected if you don't want to manage the post types with Access.

#1301861

All sorted now - many thanks for your help & explanations.