fix(licenses): bypass attachment perm check for licensed downloads #426

Merged
jmiller merged 1 commits from dev into main 2026-06-02 15:17:45 +00:00
Owner

Allows dlid-authenticated downloads on private repos.

Allows dlid-authenticated downloads on private repos.
jmiller added 1 commit 2026-06-02 15:17:29 +00:00
fix(licenses): bypass attachment permission check for licensed downloads
Universal: PR Check / Build RC Package (pull_request) Blocked by required conditions
Branch Policy Check / Verify merge target (pull_request) Successful in 1s
Universal: PR Check / Branch Policy (pull_request) Successful in 1s
Universal: PR Check / Validate PR (pull_request) Failing after 6s
Branch Cleanup / Delete merged branch (pull_request) Has been skipped
PR RC Release / Build RC Release (pull_request) Failing after 20s
95d93da2bc
ServeAttachment checks perm.CanRead(unitType) which fails for
licensed read-only access on private repos. Now skips the check
when LicensedReadOnly is set in context (from RepoAssignment).

This allows Joomla/WordPress clients with valid dlid= params to
download release files from private licensed repos.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
jmiller merged commit 7aaf8dcbb7 into main 2026-06-02 15:17:45 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: MokoConsulting/MokoGitea#426