I have a relationship setup between posts and a CPT named tv-show.
I have a user that has access to posts but on the post I want them to be able to set the relationship between the post and a "tv-show". However they can't see any tv-show posts.
Is there a way to give them say view access using Toolset Access so they can see them in the list and set the relationship between the two posts?
Yes you should be able to give the user permissions to access the CPT. Once you have given them permissions to the TV Shows CPT it should start showing up in the relationship field option.
If this does not work please let me know as soon as possible so that I can investigate this further for you.
Yes I can give them permission to access the CPT but I don't want to.
They only have post access but I want them to be able to set the relationship between the post and the CPT TV Shows. Without having access to edit TV shows, happy for them to be able to view them just not edit them apart from setting the relationship when editing a post.
They should be able to do this if its a many to many relationship between the Tv shows and the posts. Failing this you can give them edit permissions and just create an edit form for them with just the relationship field.
This way whenever they edit the post to add the relationship all they will be changing is the relationships and not anything else from the form.
It is a many to many relationship. However they don't seem to be able to set the relationship with just post access.
I understand how to give them access to edit any of the CPT TV shows. However I don't want to give them access to that like you said I want to create a form I guess so they can only edit the relationship, I am just not sure where to start with this? How do I go about doing this, so this is all they can do?
If the user role has edit or access privilege to the CPT but dont have backend access then they won't be able to edit the post but it will just serve as they are able to edit the relationship.
I mean they do need edit permissions because setting the relationship is editing the post itself to set the relationship.
I think there is a little confusion, sorry I am probably not explaining well.
So they have "post" access fully to add, edit etc. They have backend access.
They don't have access to CPT tv-shows. To edit.
I want them to be able to set the relationship the post has with CPT but they don't need access to CPT. Is this possible? Or do they have to have full edit access to all of the CPT tv-shows to do this?
So you say they have access to the "Post" default CPT in wordpress, this is fine.
They don't have to the tv-shows cpt to edit it. This is not fine.
I gather the relationship is between the Posts and tv-shows CPT. Remember that a relationship form is connecting both posts together, so it is editing both posts to set the custom data for the relationship.
If the user doesn't have access to edit the tv-shows CPT then they won't be able to set the relationship.
So in short no it is not possible without them having edit permissions.
Ah right ok thanks. It isn't about them having access to the backend, they currently do to edit and create posts. Is it that they don't need access to TV shows really so would prefer not to give access.
Is it possible with Toolset Access to let them edit TV shows but restrict what data they can edit? E.g. lock custom fields etc. Maybe this would be a solution?
Is it possible with Toolset Access to let them edit TV shows but restrict what data they can edit? E.g. lock custom fields etc. Maybe this would be a solution?
Actually yes this is possible for you to lock out the custom fields from the user roles. Just go to Toolset -> Access -> Types Fields and this should be able to allow you to lock the users from editing the custom fields.