pigallery2 icon indicating copy to clipboard operation
pigallery2 copied to clipboard

Allow public guest users to browse face tags (and search)

Open rhatguy opened this issue 3 years ago • 3 comments

Is your feature request related to a problem? Please describe. I would my gallery to be open for read access to the public with the ability to search and browse the faces tab. The guest user (logged in via a shared link) can already see the face tags on the images themselves if they browse to the image so I don't see any loss of privacy from allowing them to browse all the pictures of a particular person. Secondarily, I'd also like to allow public users to search for person:"person1" and person:"person2" just like my normal admin user can. Basically Id' like my "public" gallery users to be able to READ anything inside my gallery without having to login separately.

Describe the solution you'd like guest user (logged in via shared link) to be able to view the faces tab and search within the gallery

Describe alternatives you've considered (optional) Alternatively if I could create a shared link that automatically logged anyone who hit the link in as a certain "user" I could just create a public user and use that.

rhatguy avatar Aug 17 '21 03:08 rhatguy

This would require #310 to be implemented first,

If you would like every to get access to the full gallery just disable password protection. You can disable the setting for unauthenticated users in that case.

bpatrik avatar Aug 28 '21 09:08 bpatrik

I've disabled password protection in my gallery and set "unAuthenticatedUserRole": "User", in my config.json. Now I'm not sure how to access the admin/settings page? Is there a link somewhere or button I'm missing to get back to the admin page?

rhatguy avatar Mar 25 '22 16:03 rhatguy

No in that case the admin page wont show, you can only change the config through directly editing the config.json.

Sorry but this feature if mostly a workaround and not fully supported.

What you can also do (but cannot provide exact guidance and would require some tweeking) is to run a 2nd galley, where you override some of the configs.

So you would have an open gallery for all and a second password protected gallery. You can use the same config.json and db for both. And you would ovverride the password protection flag through cli flags or ENV variable.

bpatrik avatar Mar 26 '22 13:03 bpatrik