Hello Minesh,
in the same Profile CT I list the bands which the current profile is related to. I'd like both the current profile and the relationship author to be able to delete the relationship. Instead, the links appears only if the current user is admin. Weird is that SOMETIMES it appeared when the user is relationship author, but not always ..... It never appears for the other user.
I've read all previous posts about this topic and tried many things you guys suggested with no success, I've also changed the view as you suggested here: https://toolset.com/forums/topic/link-delete-relationship-not-visible/
but not even the cred-delete-post-link is shown !
Any clue ?
thanks
Regards
Nicola
Open Template 1655 on page 5 of the CT list and scroll down, there is a View RELATIONSHIPS where the link is placed
Hello. Thank you for contacting the Toolset support.
Can you please share the frontend post/page URL where I can see the problem.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I have set the next reply to private which means only you and I have access to it.
Can you please check now for users with Author role - do you able to see the delete relationship link. If yes, I've grant all permissions to role author for post type in relationship that is (band, profili and intermediary post type band-profili).
Minesh,
unfortunately with your solution the delete link is always displayed, thus allowing ANY musician to delete the link between ANY other band and ANY other musicians in the db even though they don't even know them, and this is too much ! But I could live with those Access settings if I could find a way to show the link only when certain conditions are satisfied, which are:
1. current user = band author OR
2. current user plays in the same band of band author => relationships exist with the same band
I don't have a clue how to test #2, any idea ?
thanks
The shortcode will return 1 if it found the post in relationship otherwise 0. You can add conditoinal shortcode to wreap the cred-delete-relationship shortcode.
For example:
[wpv-conditional if="( '[is_connected relationship='band-profilo']' eq '1' )"]
then show the cred-delete-relationshihp shortcode
[/wpv-conditional]
Hello Minesh,
I really appreciate your snippet above, but it always return one when any relationship exist. It should return one when the current user is the band author OR when the profile open plays in the same band of the band author, please see attached table, thanks