rejetto / hfs2

web based file server
https://rejetto.com/hfs
GNU General Public License v3.0
601 stars 131 forks source link

How to setup browsable to users only and file downlodable to everyone? #31

Closed IAmBlackat closed 2 years ago

IAmBlackat commented 2 years ago

How to setup browsable to users only and file downlodable to everyone? so if I use domain.com/FOLDER - Only user can see who has access domain.com/FOLDER/file.txt - can be seen and downloadable by everyone

rejetto commented 2 years ago

i don't think there's a direct option for that. Anyway, if you dig a bit I know there is some way to get what you what with some small scripting. I cannot test it myself, but I would right-click the folder I want (even root, if necessary), then "diff template", then would enter something to hack the template if you are not a user

[list panel]
{.if|%user%|{:{.section|list panel|back=1.}:}
|you shall not pass!.}

I didn't test it, sorry, you may need to fix it

IAmBlackat commented 2 years ago

Thank you! I am testing this out now. Lets hope it will work

IAmBlackat commented 2 years ago

worked out with this, thank you very much