Hide Preview button based on file/user access level
Posted: 25 Sep 2015, 19:31
I'm looking for a way to hide the "Preview" button from the files view, based on the usergroup permissions of the original file, or request user login before previewing. In other words, if the "Display Inaccessible Files" option is set to Yes on an image file (so user can see file name and that image is available) and user clicks on "Preview" in files view, it brings up a "Please login to preview the file", similar to what happens when user clicks on "Download" in same view. A model window opens, "Please login to download the file".
A simple way to hide ALL buttons (Preview, Details, Download, etc.) based on file access level vs. user access level might be easier.
Thanks for your input.
A simple way to hide ALL buttons (Preview, Details, Download, etc.) based on file access level vs. user access level might be easier.
Thanks for your input.