Skip to content

Allow authenticated users to create their first team#10

Merged
alejandro-runner merged 1 commit intosynvya-stagingfrom
codex/first-team-creation
Apr 9, 2026
Merged

Allow authenticated users to create their first team#10
alejandro-runner merged 1 commit intosynvya-stagingfrom
codex/first-team-creation

Conversation

@alejandro-runner
Copy link
Copy Markdown
Member

Summary

  • allow authenticated non-admin users to create their first team when they have zero existing team memberships in the tenant
  • keep existing full-admin behavior unchanged for team creation
  • add tenant-aware membership count coverage in the user repository tests

Why

Synvya onboarding needs a newly authenticated restaurant owner to bootstrap their first team, then continue under the normal team-admin model.

Verification

  • cargo fmt --all
  • cargo test -p keycast_core --lib --no-run
  • cargo test -p keycast_api --lib --no-run

@alejandro-runner alejandro-runner merged commit 179a664 into synvya-staging Apr 9, 2026
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