Author Topic: visibility based on user permissions  (Read 578 times)

0 Members and 1 Guest are viewing this topic.

Offline raytracer

  • Occasional poster
  • *
  • Posts: 2
    • View Profile
visibility based on user permissions
« on: May 21, 2018, 10:18:14 PM »
Just starting with HFS, is there anyway to - instead of showing all shared files/folders on the home screen -require user login and then display only those files/folders that user has permissions for?

Thanks,
Joe

Offline Mars

  • Operator
  • Tireless poster
  • *****
  • Posts: 1860
    • View Profile
Re: visibility based on user permissions
« Reply #1 on: May 21, 2018, 11:53:48 PM »
it's already implemented in hfs

switch to expert mode

open 'menu' > 'virtual file system'

and check 'List protected items only for users'

by using this option, only items that do not contain a lock will be visible to the user,
 for a connected user, those that are not authorized are masked
« Last Edit: May 22, 2018, 12:19:01 AM by Mars »

Follow members gave a thank to your post:


Offline LeoNeeson

  • Tireless poster
  • ****
  • Posts: 501
  • Solitario...
    • View Profile
    • twitter.com/LeoNeeson
Re: visibility based on user permissions
« Reply #2 on: May 22, 2018, 12:06:22 AM »
» You can do it this way:



- Right click on the home / icon > Properties...
- Then click on 'Manage accounts', make some users/pass and click OK.
- Then back on the 'Properties' window, and check on the users you made.
- Click OK to apply the changes, and it's done.

Now every time someone visits your site, it will ask an user and password (if some visitor doesn't have it, it will show an 'Unauthorized' message).

Your question is somewhat related to this question. Currently, there is no 'classic' login form, like most websites have (HFS has only implemented a basic auth pop-up).

» EDIT: I was writing my answer while Mars was answering you (his answer is the most appropriate and easy way to do it :) )
« Last Edit: May 22, 2018, 12:08:50 AM by LeoNeeson »
• HFS ahora también disponible en Español! (Clic aqui) :)
• HFS is now also available in Spanish! (Click here)

Offline raytracer

  • Occasional poster
  • *
  • Posts: 2
    • View Profile
Re: visibility based on user permissions
« Reply #3 on: May 22, 2018, 12:56:34 AM »
Thanks, guys.

Mars' method accomplished exactly what I was after.