Skip to content

Selectively allow unpublishing of historical editions [WHIT-3402]#11456

Merged
kashifatcha merged 2 commits into
mainfrom
unpublishing-historical-docs-permission
May 19, 2026
Merged

Selectively allow unpublishing of historical editions [WHIT-3402]#11456
kashifatcha merged 2 commits into
mainfrom
unpublishing-historical-docs-permission

Conversation

@davidsauntson
Copy link
Copy Markdown
Contributor

Previously only GDS Editors and GDS Admins could unpublish historical content. The DBT are about to unpublish and archive a lot of content, so an exception has been made to allow specific users outside of those two GDS roles to unpublish historic content. See https://gov-uk.atlassian.net/browse/WHIT-3402

This change creates the relevant unpublishing permission and allows users with it to perform the unpublishing action for historic documents.


⚠️ This repo is Continuously Deployed: make sure you follow the guidance ⚠️

This application is owned by the Whitehall Experience team. Please let us know in #govuk-whitehall-experience-tech when you raise any PRs.

Follow these steps if you are doing a Rails upgrade.

Comment thread test/factories/users.rb Outdated
Copy link
Copy Markdown
Contributor

@TonyGDS TonyGDS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Previously only GDS Editors and GDS Admins could unpublish historical content.  The DBT are about to unpublish and archive a lot of content, so an exception has been made to allow specific users outside of those two GDS roles to unpublish historic content.

This change creates the relevant unpublishing permission and allows users with it to perform the unpublishing action for historic documents.
GDS Editors and Admins were already able to perform any action on historical content.

This changes expands the tests for these users to more fully cover these permissions.
@davidsauntson davidsauntson force-pushed the unpublishing-historical-docs-permission branch from 4635676 to 2d3582e Compare May 18, 2026 08:50
@kashifatcha kashifatcha merged commit 4f9a723 into main May 19, 2026
25 checks passed
@kashifatcha kashifatcha deleted the unpublishing-historical-docs-permission branch May 19, 2026 06:46
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.

3 participants