I have a many to many relationship between CPT 'partners' and CPT 'brands' (NL = 'merken'). The relationship is called 'brans-shop' (see 'relationship.png'). Via CRED, a partner can log in and edit his fields, e.g. 'name', 'address', 'photo', ... Every partner has a custom role called 'Partner' assigned. Only 2 permissions of that 'Partner' custom role are checked:
Once logged in, the partner should be able to add and remove multiple brands. So I've made a view (called 'Klanteninterface: merken (per winkel)') that loops all the brands related to that partner:
Adding a new brand works great, the problem I'm dealing with is when I want to delete a brand relation.
It works fine when I'm logged in as an administrator, but clicking the 'delete' link (NL = 'Verwijderen') isn't working when I'm logged in as a partner (so when I have the 'Partner'-role.
Clicking the link doesn't do anything. No loading page, no loading cursor: no changes at all! It must be a user rights problem, but I can't find how I can solve it. I've checked every permission in the custom user roles but I'm not sure if there's an option that I should check so a partner could delete his brands (see 'custom-role-permissions.png').
Perhaps you guys know what I could do to fix my problem?
I see you say your Partner role only has 2 permissions, however they will need Delete permissions for this post type in order for them to be able to delete it.
Is this post type being managed by access ? Please check that the user role is able to delete the post.
Thanks for pointing me in the right direction. I finally found the right permission (Access control > Custom roles > Change permissions) to check: 'manage_options'.
I did some additional tests and concluded that the specific post type 'Partner' don't need the 'Delete own' checked 😉