Skip to content

Split repository moderators from managers - #5622

Merged
mauromsl merged 1 commit into
r-v1.9.xfrom
b-repository-moderators-1.9
Oct 8, 2026
Merged

mauromsl merged 1 commit into
r-v1.9.xfrom
b-repository-moderators-1.9

Conversation

@ajrbyers

@ajrbyers ajrbyers commented Oct 7, 2026 •

Copy link
Copy Markdown
Member

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 (migration repository 0063) and Repository.moderating_accounts() (managers and moderators).
  • Account.is_repository_moderator() and a @is_repository_moderator decorator. 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.
  • A Moderators page for managers to add and remove moderators.
  • Moderators receive moderation notifications and can be chosen as submission notification recipients.
  • The back office side menu splits into Moderation and Configuration, and moderators only see Moderation.
  • repository/tests/test_moderators.py covers access by role, the menu and notifications.

For reviewers

  • The API's IsRepositoryManager permission 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?
  • Link repository managers to preprint reports #5620 (reporting link) also touches this menu; whichever merges second needs a small conflict fix.

@ajrbyers
ajrbyers force-pushed the b-repository-moderators-1.9 branch from 0aa5cbe to d283bcd Compare October 7, 2026 11:50
@ajrbyers
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
ajrbyers added this pull request to stack #5624 October 7, 2026 11:50
@ajrbyers
ajrbyers removed this pull request from stack #5624 October 7, 2026 11:51
@ajrbyers
ajrbyers added this pull request to stack #5625 October 7, 2026 11:51
@ajrbyers
ajrbyers requested a review from mauromsl October 7, 2026 12:10
@ajrbyers
ajrbyers force-pushed the b-repository-moderators-1.9 branch from d283bcd to b28ba11 Compare October 8, 2026 12:13
@mauromsl
mauromsl force-pushed the b-repository-moderators-1.9 branch from b28ba11 to e015be2 Compare October 8, 2026 12:29
Base automatically changed from b-preprint-version-pages-1.9 to r-v1.9.x October 8, 2026 12:29
@mauromsl
mauromsl force-pushed the b-repository-moderators-1.9 branch from e015be2 to ea0e657 Compare October 8, 2026 12:29
@mauromsl
mauromsl merged commit a3bb343 into r-v1.9.x Oct 8, 2026
4 checks passed
@mauromsl
mauromsl deleted the b-repository-moderators-1.9 branch October 8, 2026 12:30
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