Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • pleroma pleroma
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 646
    • Issues 646
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 88
    • Merge requests 88
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • PleromaPleroma
  • pleromapleroma
  • Merge requests
  • !3495

Moderators: add UserIsStaffPlug

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Alex Gleason requested to merge staff-plug into develop Aug 04, 2021
  • Overview 0
  • Commits 3
  • Pipelines 1
  • Changes 4

Since !3480 (merged) was controversial, this is the uncontroversial part.

It adds a new plug, UserIsStaffPlug which is very similar to UserIsAdminPlug, except that moderators and admins can both pass through it.

For now, all AdminAPI endpoints still require the user to be an admin. This is just a first step to adding support for moderators.

No changelog entry because this is not user-facing.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: staff-plug