Closed (fixed)
Project:
Album Photos
Version:
7.0.x-dev
Component:
Code
Priority:
Minor
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
8 Apr 2021 at 17:05 UTC
Updated:
1 Jan 2026 at 18:49 UTC
Jump to comment: Most recent
Comments
Comment #2
nathaniel commentedCode snippet for PhotosAccessTest:
Comment #3
nathaniel commentedComment #6
jerech commentedI've submitted a MR!4 that addresses the collaborator access issue when an album is password protected (viewid = 3).
The fix is implemented in photos_access_pass_validate(): it now explicitly checks if the current user ID is listed as a collaborator in the photos_access_user table (where collaborate = 1 and id = $t['view']->id). If they are a collaborator, the function returns TRUE immediately, correctly bypassing the password prompt and redirect logic.
The proposed test case (from comment #2) was used to validate the fix.
Comment #9
nathaniel commentedLooks good! Thanks for working on this.