Skip to content

Fix/918 authenticated archive all - #923

Merged
poppastring merged 2 commits into
poppastring:mainfrom
Raf-Hs:fix/918-authenticated-archive-all
Sep 29, 2026
Merged

poppastring merged 2 commits into
poppastring:mainfrom
Raf-Hs:fix/918-authenticated-archive-all

Conversation

@Raf-Hs

@Raf-Hs Raf-Hs commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

This PR addresses the archive behavior described in #918.

#918 — archive/all should be available to me when authenticated

When Blog Features are disabled:

  • Anonymous users continue to receive 404 from /archive/all.
  • Authenticated users can access /archive/all.
  • Existing Edit/Delete controls remain available.
  • Other endpoints using RequireBlogFeatures keep 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/all remains accessible.
  • Edit/Delete controls remain available.
  • The "Manage Post Comments" control is hidden.

When Blog Features are disabled, Comments are still forced off as before.

Tests

  • RequireBlogFeaturesFilterTests: 4/4 passed
  • AdminControllerSettingsTests: 2/2 passed
  • Full unit test suite: 389/389 passed
  • Playwright regression tests were added but are skipped in the current environment by the existing Docker/build-server guard.
  • git diff --check passed.

Additional finding

While manually testing the changes, I found that authenticated users can still directly access /admin/manage-comments when 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.

…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.
@poppastring
poppastring merged commit b64ae5d into poppastring:main Sep 29, 2026
3 checks passed
@poppastring

Copy link
Copy Markdown
Owner

@Raf-Hs Many thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants