Restricting pods to current user
-
Hello,
I’d like to know how to restrict pods content to current logged in user.Here’s my use case.
I’m building a paramedical platform on which practitioneers can record their sessions with their clients.
In my model, practitioneers are users, and clients is a pod.
I managed to restrict listing of pods items through the use of the {@user.id} special magic tag.
However, I’d like to:
– prevent access to a pod item by URL if the author is not the current user (ex: https://mysite/client/post-title)
– show in search results only pod items authored by current user.Is that possible with code or template?
Thanks in advance!
The topic ‘Restricting pods to current user’ is closed to new replies.