fix(ui): styled 403 Access Denied page matching 404 layout #424

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

Pretty 403 page with sign-in button for anonymous users.

Pretty 403 page with sign-in button for anonymous users.
jmiller added 1 commit 2026-06-02 15:05:53 +00:00
fix(ui): styled 403 Access Denied page matching the 404 page layout
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 21s
449af83e2b
Add templates/status/403.tmpl mirroring the 404 page design with
a centered error message and sign-in button for anonymous users.

New Forbidden() method on Context renders the styled 403 template
for HTML requests, falls back to plain text for API/non-HTML.

RepoAssignment now calls ctx.Forbidden() instead of raw HTTPError
for both anonymous and signed-in users without access.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
jmiller merged commit 3f817babd3 into main 2026-06-02 15:06:08 +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#424