Skip Navigation

[Resolved] cred-delete-relationship shortcode don't work with non administrators users.

This support ticket is created 5 years, 10 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.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 11 replies, has 2 voices.

Last updated by guillermoZ 5 years, 10 months ago.

Assisted by: Christian Cox.

Author
Posts
#1180790

I am trying to: Delete a relationship

Link to a page where the issue can be seen: hidden link

I expected to see: Delete a player

Instead, I got: Nothing

#1180795

You can view this page with this user (non administrator)

user: manuel
pass: 43214321

You can ask me for an administrator user.

Best Regards

#1180903

Hi, can you try these troubleshooting steps first?
- Temporarily activate the OceanWP parent theme, temporarily deactivate all plugins except Types, Views, and Forms.
- Test again. If non-admins are able to see the links now, reactivate your child theme and other plugins, one by one, until the problem returns.
- If the links are still not shown, I'll be glad to take a closer look. Please provide admin credentials in the private reply fields.

#1180968
Screen Shot 2019-01-09 at 2.30.52 PM.png

I'm able to click the link when I log in as "manuel" using the information you provided. Then I am redirected to a Form to edit the post. I also tested with the toolset User. Both Users are able to edit the post. I'm attaching a screenshot here. Am I missing something?
- What browser are you using? Can you try a different browser or device?
- Can you clear your browser cache and cookies and try again?

#1181012
Captura de pantalla 2019-01-09 a las 21.41.45.png

Hi again!

The "Edita este equipo" button is fine. The problem is the "Eliminar" link in the table. With "manuel" user the link appears but nothing does. I'm using this code in the view (this code works fine if the user is a admin)

[cred-delete-relationship role_items='$fromViews' relationship='equipo_tenista' redirect='self']Eliminar[/cred-delete-relationship]
#1181562

Ah, I misunderstood. Thank you for the clarification. When I log in as manuel, I am unable to edit this post:
hidden link
I am redirected to the homepage of the site. However, in Toolset Access Control I can see that Coordinators should have the ability to edit Equipo Primer Semestre posts. So there seems to be a permissions issue preventing Coordinators from editing some post types. Is the "Coordinador" role created with Toolset Access, or created by another plugin or your theme?

When I inspect the network tab, I can see that clicking the Eliminar link triggers an AJAX request, but the response is "Usted no tiene permisos para eso", so this also points to a permissions issue.

When troubleshooting permissions issues you can try the following steps:
- Make sure no other plugins, theme files, or custom code is managing permissions. If so, temporarily disable it.
- Check the native WordPress "Post" post type permissions in Toolset Access. Ensure Coordinadors have all permissions for Posts (this is a temporary test).
- Check both Equipo Primer Semestre and Tenista post types. Both should be managed by Access, and Coordinadors should have all permissions for both post types.

If none of these steps solves the problem, there may be a permissions corruption in the database. If that is the case, I can work with a copy of your database to find the best solution. Let me know what you find out.

#1181643

Hello, Christian.

You are unable to edit the post because I have a snippet to avoid to enter in the dashboard. I've deactivate the snippet now and you can to edit the post.

The roles were created with Toolset. But, now I've created a new rol named "Coordinadores" and I've gave the same permissions. But nothing changes...

I've checked the steps you said but all the checks are ok. Is a permission issue or is an issue with the new relationship tool?

#1181673

It's difficult for me to say where the problem is coming from without inspecting the database. When you created the new custom role, Access gives you the ability to copy privileges from another role. When you created the Coordinador role, did you copy privileges from another role?

#1181682

Yes, I copied from Editor role.

How can I give you access to the database? The problem is that this site is on a Multisite installation. I have access to the entire Multisite.

#1181713

I have a copy of Duplicator Pro, which is pretty good at cloning Multisite instances and migrating them to a local test environment. If it's okay with you, I can install it and create a clone of the whole network. Otherwise, I can try to work with a database dump file. I will activate private reply fields here. You can share admin access, or share a link to download a database dump file.

#1181742

Thank you. Unfortunately I was unable to figure this out by the end of my day, but I will be available again on Sunday to continue investigating. If you need more immediate assistance, feel free to start a new ticket and request assistance. Thanks!

#1182159

I discovered that if I activate "manage_options" permission in General Capacities tab, the user can erase the relationship. It's enough for me.

Thanks a lot for your help.

Best Regards.