Users cannot see album if it's inside another album where they don't have permissions #76
Labels
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: aheathershaw/blue-twilight#76
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
LNT00:
When a user has permissions for a child-album, but not for the parent album, he can't see the child album when he 's logged in.
Migrated from https://github.com/andysh-uk/blue-twilight/issues/76
I've been thinking about this a bit more, and due to the complexity of the logic, it needs to be implemented in code.
This could be cached in the database in a similar way to how we cache disk usage in Blue Twilight Cloud (e.g. a flag indicating the permission cache is dirty.)
The cache will need to be dirtied when the following is true:
Also we should add a button to the Settings screen that allows an administrator to rebuild the permissions cache.
Following the changes made in #71, this is now possible.
If the album selector is set to include child albums, then child albums a user has permissions to are visible despite not having permissions to the parent.