[ENG-9198] Do not show page not found for preprint pending moderation#11567
Merged
adlius merged 5 commits intoCenterForOpenScience:feature/pbs-26-2from Feb 4, 2026
Merged
Conversation
…tors/Logged-out users using /pending-moderation redirection on access
…moderation and is not yet publicly available.' logic
ihorsokhanexoft
suggested changes
Jan 30, 2026
| # May raise a permission denied | ||
| if check_object_permissions: | ||
| self.check_object_permissions(self.request, preprint) | ||
|
|
Contributor
There was a problem hiding this comment.
I believe it's better to leave it where it was in order to not break current behavior
Contributor
Author
41f5d7c
into
CenterForOpenScience:feature/pbs-26-2
15 of 16 checks passed
ihorsokhanexoft
pushed a commit
to ihorsokhanexoft/osf.io
that referenced
this pull request
Feb 16, 2026
…CenterForOpenScience#11567) * if preprint is pending moderation show it for not contributors/moderators/Logged-out users using /pending-moderation redirection on access * update testcases to be it compatable with 'This preprint is pending moderation and is not yet publicly available.' logic * test update * test update * test update
Vlad0n20
pushed a commit
to Vlad0n20/osf.io
that referenced
this pull request
Feb 16, 2026
…CenterForOpenScience#11567) * if preprint is pending moderation show it for not contributors/moderators/Logged-out users using /pending-moderation redirection on access * update testcases to be it compatable with 'This preprint is pending moderation and is not yet publicly available.' logic * test update * test update * test update
ihorsokhanexoft
pushed a commit
to ihorsokhanexoft/osf.io
that referenced
this pull request
Feb 17, 2026
…CenterForOpenScience#11567) * if preprint is pending moderation show it for not contributors/moderators/Logged-out users using /pending-moderation redirection on access * update testcases to be it compatable with 'This preprint is pending moderation and is not yet publicly available.' logic * test update * test update * test update
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.

Ticket
Purpose
There is no unified access-control handling for preprints that are pending moderation. The system does not consistently intercept direct access attempts and route non-authorized users to a clear, informative state explaining that the preprint is under moderation.
Introduce a generic static “Preprint Pending Moderation” page that is shown when a preprint is in a pending moderation state and belongs to a provider that requires pre-moderation.
Allowed access:
Contributors on the preprint (all roles: read, write, admin)
Moderators for the specific preprint provider
Restricted access:
Logged-in users who are not contributors
Logged-in users who are not moderators for that provider
Logged-out users
Any general user accessing the preprint via direct URL
Changes
if preprint is pending moderation show it for not contributors/moderators/Logged-out users using /pending-moderation redirection on access (ticket related front end updates CenterForOpenScience/angular-osf#835)
96a5-15e4-48c7-8a79-17ff261adc06.mp4
Side Effects
QE Notes
CE Notes
Documentation