Repository navigation
Fix/918 authenticated archive all - #923
Merged
poppastring merged 2 commits intoSep 29, 2026
Merged
Conversation
…ated Allow authenticated users to reach ArchiveAll when Blog Features are disabled, while anonymous requests continue to return 404. Scope the bypass to the archive-all attribute so other RequireBlogFeatures endpoints retain their existing behavior. Preserve the existing Edit/Delete authorization. Add filter coverage for the opt-in and default paths, plus Playwright coverage for anonymous and authenticated archive access.
…ated Keep EnableComments independently configurable while Blog Features are enabled so archive comment-management visibility follows the documented Blog Features and Comments conditions. Continue forcing Comments off when Blog Features are disabled. Update settings UI behavior and regression coverage. This commit contains the Comments-settings part of poppastring#918; the preceding commit contains authenticated archive access.
Owner
|
@Raf-Hs Many thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR addresses the archive behavior described in #918.
#918 — archive/all should be available to me when authenticated
When Blog Features are disabled:
404from/archive/all./archive/all.RequireBlogFeatureskeep their existing behavior.The feature-gate exception is scoped only to
ArchiveAll().#918 — manage comments on the archive page
The Comments setting can now be disabled independently while Blog Features remain enabled.
When Comments are disabled:
/archive/allremains accessible.When Blog Features are disabled, Comments are still forced off as before.
Tests
RequireBlogFeaturesFilterTests: 4/4 passedAdminControllerSettingsTests: 2/2 passedgit diff --checkpassed.Additional finding
While manually testing the changes, I found that authenticated users can still directly access
/admin/manage-commentswhen Comments are disabled, even though the archive link is hidden.That behavior is intentionally not changed in this PR to keep the changes scoped to #918.