Add admin-toggleable auto-approve setting for event proposals #11

Closed
opened 2026-04-27 09:39:53 +00:00 by padreug · 0 comments
Owner

Summary

Currently, events from non-admin users are always set to proposed and require admin approval. For some deployments (e.g., demo environments, trusted communities), the admin may want to auto-approve all events.

Proposed solution

Add an extension-level setting toggleable from the admin UI:

  • "Require approval for new events" — checkbox/toggle in the extension settings
  • When enabled (default): non-admin events are proposed
  • When disabled: all events are auto-approved regardless of who creates them

Implementation

  • Add require_approval boolean to an extension settings model (similar to Castle's extension_settings table pattern)
  • Add a settings card to the admin UI with the toggle
  • Check the setting in POST /events and POST /events/propose endpoints

Depends on

## Summary Currently, events from non-admin users are always set to `proposed` and require admin approval. For some deployments (e.g., demo environments, trusted communities), the admin may want to auto-approve all events. ## Proposed solution Add an extension-level setting toggleable from the admin UI: - **"Require approval for new events"** — checkbox/toggle in the extension settings - When enabled (default): non-admin events are `proposed` - When disabled: all events are auto-approved regardless of who creates them ## Implementation - Add `require_approval` boolean to an extension settings model (similar to Castle's `extension_settings` table pattern) - Add a settings card to the admin UI with the toggle - Check the setting in `POST /events` and `POST /events/propose` endpoints ## Depends on - aiolabs/events#9 (approval workflow PR)
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
aiolabs/events#11
No description provided.