Skip to content

Albums: Ignore public filter if "Private" feature is disabled in Settings #2570

@Kafkalasch

Description

@Kafkalasch

1. What is not working as documented?

The Setting Settings -> General -> Private states:

Excludes content marked as private from search results, shared albums, labels and places.

This works as expected, when turned on. But if I turn it off, all that happens is that the private section on the left hand site disappears. The photos are cannot be viewed anymore. This does not seem to be a cache issue as this stays such even after refreshing the browser.

2. How can we reproduce it?

Steps to reproduce the behavior:
Go to demo version of photoprism

  1. Verify that settings -> private is on (or turn it on)
  2. Go to calender -> Feb 2017, and select the flower and mark it private.
  3. Verify that it is not shown any more of you re-open the view
  4. Turn settings -> private off
  5. Go to calender -> Feb 2017, you still cannot see the flower.

3. What behavior do you expect?

I would expect to see the photos again when turning the settings->private flag off.

Basically this is my usecase:
-> If I want to show the photos to friends/family, I set the flag in the settings to true
-> If I want to show the photos to my partner, I would like to disable the privacy setting to see all photos in folders/places/month view. But this does not work

4. What could be the cause of your problem?

I assume that the UI/backend still check the private flag. No matter how the settings are.
So basically, instead of (pseudo-code):
shouldIncludePhoto = photo.private !== true
one should check
shouldIncludePhoto = settings.private === true && photo.private !== true

But this is just an assumption, I haven't checked this in the source code.

Metadata

Metadata

Assignees

Labels

docs 📚Improvements or additions to documentationenhancementEnhancement or improvement of an existing featurereleasedAvailable in the stable release

Type

No type

Projects

Status

Release 🌈

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions