rejetto forum

visibility based on user permissions

0 Members and 1 Guest are viewing this topic.

Offline raytracer

  • Occasional poster
  • *
    • Posts: 2
    • View Profile
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: 2059
    • View Profile
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 »


Offline LeoNeeson

  • Tireless poster
  • ****
    • Posts: 842
  • Status: On hiatus (sporadically here)
    • View Profile
    • twitter.com/LeoNeeson
» 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 in Spanish (HFS en Español) / How to compile HFS (Tutorial)
» Currently taking a break, until HFS v2.4 get his stable version.


Offline raytracer

  • Occasional poster
  • *
    • Posts: 2
    • View Profile
Thanks, guys.

Mars' method accomplished exactly what I was after.