-
-
Notifications
You must be signed in to change notification settings - Fork 271
Description
Task list
- Private posts showing properly in Pods find()
- Private posts showing properly in Relationship lists
- Private posts showing properly in Shortcodes
- Add option to include private posts in Pod editor under Advanced, next to default post status
ORIGINAL ISSUE DESCRIPTION by @enquirer32:
I’ve created two pods. The entries associated with these are saved as ‘private’. One cant view the content on the front end of the website.
As admin on this WP installation.
I created new a CPT.
Created one field.
I added new 'testpod' from admin - 'Add New'.
Filled in my one field.
I created a new post and inserted the following shortcode: [pods name="testpod"]<br />{@test_field}<br />[/pods]
I made sure the pod was 'private'
If one views the post on front end one can see the title but no output (it is 'Private')
Reset the pod item to 'public' - the content shows up on the front end.
For me this is a serious issue and it isn't how core WP works. When something is 'Private' the author can always see their own posts.
My set-up: My intention was to restrict the content others could see but always intending that the creator of the content (adding content through a Pod form) could see their own. For example, I have a logged in user who creates content in both pods. He has all the permissions required to edit ‘private’ content and it his content. So long as the data in the pods he created is private he can't access this data.
In my real install I also have a couple of single relationship dropdowns. However, he can’t access these unless the pods are ‘published’ – they don’t work as private either. This is also an unforseen problem which means I can't use Pods the way I had intended.
Is there a temporary fix for this - some hack I can add to the files? Was this always your intention?
You don't need files or images to replicate this yourself - it is very straight forward.