Skip Navigation

[Resolved] Subscriber role cannot use [cred-delete-relationship] on their own group posts

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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 3 replies, has 1 voice.

Last updated by Kaviya Ayyappan 1 week, 3 days ago.

Assisted by: Minesh.

Author
Posts
#2872785

Hi Toolset Support,

I have a group post type setup where subscribers can create and manage their own groups on the front end. Groups have relationships with Post Type A and Post Type B using Toolset Relationships. Subscribers who own a group can connect posts using toolset relationship form in frontend but cannot disconnect them using [cred-delete-relationship].

The shortcode used:
[cred-delete-relationship role_items='$fromViews' relationship='group-posttypeA' redirect='self' type='link']

The problem is tied to Toolset Access control:

— If I do NOT give "edit any" permission for Post Type A and Post Type B to the subscriber role, they cannot see or use the remove button at all, even on their own groups.

— If I DO give "edit any" permission for Post Type A and Post Type B to the subscriber role, the remove button appears and works, but now they can remove connected posts from ANY group, including groups they do not own.

Example:

User A (subscriber) owns Group 1.
User B (subscriber) owns Group 2.
Both groups have Post Type A - "Grant X" connected to them.

With "edit any" enabled:
- User A can remove "Grant X" from Group 1 (correct — owns the group)
- User A can also remove "Grant X" from Group 2 (incorrect — does not own Group 2)

Without "edit any" enabled:
- User A cannot remove "Grant X" from Group 1 (incorrect — should be able to, since they own the group)

Expected behavior:
A subscriber should be able to disconnect related posts only from groups they own, without being able to disconnect anything from groups owned by other users.

Please guide me on this issue,

Thanks in advance

#2872798

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

This is a known issue to us and I will reaise your voice to our internal ticket.

Can you please assign publish rights to post type involve in your post-relationshp for the subscriber role and check.

Please check the following related ticket:
- https://toolset.com/forums/topic/user-edit-many-to-many-relationships/#post-2688089

#2872815

Hi Minesh ,

I already enabled publish access for that related post type to subscriber but I can only see the remove when i give edit any permission.

Is there any hook or fucntion i can use to disconnect the post via code. So I can use that function if owner of the post then show this remove option.

We already have running site as customer requested from our side, I need this issue to be solved somehow

Thanks in advance

#2873106

Minesh
Supporter

Can you please share admin access details and problem URL where I can see the disconnect post link.

*** 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.

#2873108

Hi Minesh,

My issue is resolved , I used workaround. I added the if condition to show the remove shortcode only if they are author of the current page post ID , then it works as expected for groups.