Problem/Motivation
The logic for photos_access gets mixed up when switching between options. Sometimes multiple entries will be in {photos_access_album} for the same nid and this will cause problems with the views filter. Also the password is wiped out in various places. One if the password field is left blank when updating the node after a password has been set.
Proposed resolution
Keep one row per node in {photos_access_album} and update as needed.
Remaining tasks
- Test switching between all options while keeping an eye on the
{photos_access_album}table and{node_access}. - Check if password is empty before updating. Make update query dynamic.
Comments
Comment #2
nathaniel commentedThis might require some restructuring.
Remove
{photos_access_album}.updateidand add{photos_access_user}.collaborate.Comment #3
nathaniel commentedBackporting to 7.x-3.x.
Need to update 8.x-4.x migration files.
Comment #7
nathaniel commented