How do I determine user who created the video I am viewing?
The default video gallery is exceptionally insecure in that, if anyone knows the URL to a given video or knows how to view the site-wide video gallery, they can access the content, even if permissions say they should not be able to (e.g. the video is posted in a semi-private space).
I got around this by creating a custom component for the video gallery page that will not render the video gallery page unless the user is an admin or moderator. This allows videos to appear on the site, but blocks deep gallery links, e.g. https://community.checkpoint.com/t5/video/gallerypage/video-id/9zbXFzaTE65HoF1CxB07jiBo89kOizUp
The ultimate goal is to allow the person who posted the video to access the gallery page for that specific video in addition to admins and moderators.
It appears the same component is used for rendering a single video or a gallery of videos. How can I programmatically determine:
- Whether I'm actually viewing a video versus the gallery
- Who posted the video I'm current viewing
I don't see any documentation that covers these two items.