Skip to content

feat: allow moderators on opt-in roles#405

Open
herpaderpaldent wants to merge 2 commits into
4.xfrom
feat/opt-in-moderators
Open

feat: allow moderators on opt-in roles#405
herpaderpaldent wants to merge 2 commits into
4.xfrom
feat/opt-in-moderators

Conversation

@herpaderpaldent
Copy link
Copy Markdown
Contributor

Summary

Opt-in roles previously could not have moderators — the SetModeratorAction and the web controllers blocked the operation with a 403. This PR extends moderator support to opt-in roles.

Changes

  • OptInRoleService::setModerator() — new method, identical pattern to ManualRoleService/OnRequestRoleService: calls setRoleMembership() with can_moderate flag
  • SetModeratorAction::validateRoleType() — updated to also accept OptInRoleService

Tests

All 278 tests pass, 100% type coverage maintained.

herpaderpaldent and others added 2 commits May 7, 2026 09:06
- Add setModerator() to OptInRoleService (same pattern as ManualRoleService/OnRequestRoleService)
- Update SetModeratorAction::validateRoleType() to accept OptInRoleService

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…ated during SSO

Previously throw_if() raised an exception causing a 500 on the
initial SSO callback when a user was already logged in. Now we
redirect to '/' silently, keeping the user where they should be.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.

1 participant