Skip to content

Add admin management for streams and events#33

Merged
rockynox merged 5 commits into
mainfrom
develop
Jun 29, 2026
Merged

Add admin management for streams and events#33
rockynox merged 5 commits into
mainfrom
develop

Conversation

@rockynox

Copy link
Copy Markdown
Member

Summary

  • Le créateur d'un stream ou d'un évènement peut désormais ajouter et retirer des administrateurs depuis la page d'édition
  • Si l'utilisateur ajouté n'existe pas, un compte est créé et un email d'invitation est envoyé avec un lien pour définir son mot de passe
  • Si l'utilisateur existe déjà, aucune notification n'est envoyée
  • Seul le propriétaire (is_owner = 1) peut gérer les admins — les admins ajoutés ne peuvent pas en ajouter d'autres

rockynox and others added 5 commits June 29, 2026 12:48
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Add HasRight interface (getRightColumn/getRightId) implemented by Event and Stream
- Collapse 6 entity-specific UserRepository methods into 3 generic ones:
  selectAdmins, isOwner, deleteRight
- Extract provisionAdminUser() in AdminController to deduplicate
  find/create/token/invite logic shared by event and stream add-admin flows
- Replace array_filter+!empty duplicate check with in_array(array_column(...))

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Add admin management for streams and events
@rockynox
rockynox merged commit c66cd3f into main Jun 29, 2026
2 checks passed
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