Repository navigation
Split repository moderators from managers - #5622
Merged
Merged
Conversation
This was referenced Oct 7, 2026
ajrbyers
force-pushed
the
b-repository-moderators-1.9
branch
from
October 7, 2026 11:50
0aa5cbe to
d283bcd
Compare
ajrbyers
changed the base branch from
b-preprint-frozen-authors-1.9
to
b-preprint-version-pages-1.9
October 7, 2026 11:50
ajrbyers
added this pull request to stack #5624
October 7, 2026 11:50
ajrbyers
removed this pull request from stack #5624
October 7, 2026 11:51
ajrbyers
added this pull request to stack #5625
October 7, 2026 11:51
mauromsl
approved these changes
Oct 7, 2026
ajrbyers
force-pushed
the
b-repository-moderators-1.9
branch
from
October 8, 2026 12:13
d283bcd to
b28ba11
Compare
mauromsl
force-pushed
the
b-repository-moderators-1.9
branch
from
October 8, 2026 12:29
b28ba11 to
e015be2
Compare
mauromsl
force-pushed
the
b-repository-moderators-1.9
branch
from
October 8, 2026 12:29
e015be2 to
ea0e657
Compare
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.
Stacked on #5612; review that first. This PR's own change is the last commit.
Separates repository moderators from managers. Moderators handle submissions and updates; managers also configure the repository.
What changed
Repository.moderators(migrationrepository0063) andRepository.moderating_accounts()(managers and moderators).Account.is_repository_moderator()and a@is_repository_moderatordecorator. Moderation views (preprint list and pages, version queue, comments, reviewers, rejected and orphaned preprints, author editing) accept moderators; configuration views (subjects, fields, licences, settings, the new moderators page) stay manager-only.repository/tests/test_moderators.pycovers access by role, the menu and notifications.For reviewers
IsRepositoryManagerpermission now admits moderators, so they can use the manager preprint API. That includes the licences endpoint, which allows POST and DELETE. Should licences stay manager-only?