Skip to content

fix(console): require a role in Invite member and hide inviting from non-admins - #3339

Merged
peintnermax merged 2 commits into
mainfrom
console-invite-permissions
Nov 26, 2026
Merged

peintnermax merged 2 commits into
mainfrom
console-invite-permissions

Conversation

@peintnermax

Copy link
Copy Markdown
Member

Context

Summary

  • No preselected role ([FE] Invite member dialog preselects the Admin role #3329): the Invite member dialog opens with none of Admin, Editor, Viewer selected, and Create invitation is disabled until one is picked. Submitting with Enter from the name field sends nothing without a role. This matches the CLI, where --relation is required.
  • No inviting for non-admins ([FE] Hide "Invite member" for users who can't manage invitations #3331): the server refuses the invitations read for anyone who is not an admin of the project (403 inv.permission_denied). The page uses that answer:
    • Invite member is not rendered.
    • The Invitations tab stays and says "Only project admins can see and create invitations." instead of the error.
    • Any other failed read is still shown as the API's own message.
  • Effective permissions are not readable yet (console ADR 0004 §5). The refusal of this read was chosen over deriving the role from the members list, so the console does not re-implement the server's rule (grant, owning team).
  • e2e/journey/src/claim.spec.ts now picks Admin before creating.

Validation

  • turbo run lint typecheck test --filter=@zitadel/console (1122 tests).
  • tsc --noEmit -p e2e/tsconfig.json.
  • On dev:claim against the real server: as the admin, the dialog opened with no role and a disabled button; picking Viewer created a viewer invitation. As that viewer after joining, Members showed no Invite member and the Invitations tab showed the admin-only message.
  • Not run: the e2e lanes, including the edited journey test. An editor was not checked in the browser, only a viewer; the server check is the same for both.

Release notes / changeset

.changeset/console-invite-role-and-permissions.md (@zitadel/server, patch).

Notes

  • The tab is kept, not hidden, so a ?tab=invitations link still lands somewhere that explains itself.

🤖 Generated with Claude Code

…non-admins

- The invite dialog opens with no role selected and Create invitation stays
  disabled until one is picked, so a link no longer grants Admin by default
  (#3329).
- For someone who is not an admin of the project the invitations read is
  refused (inv.permission_denied). The page then shows no Invite member, and
  the Invitations tab says only admins can see invitations instead of the
  error (#3331).

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@vercel

vercel Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
cloud Ready Ready Preview Nov 25, 2026 10:34am UTC

Request Review

@github-actions

github-actions Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

🦋 Changeset detected

Latest commit: e9745db

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 27 packages
Name Type
@zitadel/server Patch
@zitadel/cli Patch
@zitadel/testing Patch
@zitadel/server-darwin-arm64 Patch
@zitadel/server-darwin-x64 Patch
@zitadel/server-linux-arm64 Patch
@zitadel/server-linux-x64 Patch
@zitadel/server-win32-x64 Patch
@zitadel/api Patch
@zitadel/components Patch
@zitadel/config Patch
@zitadel/sdk-angular Patch
@zitadel/sdk-core Patch
@zitadel/sdk-next Patch
@zitadel/sdk-nuxt Patch
@zitadel/sdk-qwik Patch
@zitadel/sdk-qwik-router Patch
@zitadel/sdk-react Patch
@zitadel/sdk-solid Patch
@zitadel/sdk-solid-start Patch
@zitadel/sdk-svelte Patch
@zitadel/sdk-sveltekit Patch
@zitadel/sdk-tanstack-start Patch
@zitadel/sdk-vue Patch
@zitadel/cloud Patch
@zitadel/client-sdk-contract Patch
@zitadel/server-sdk-contract Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

A caller whose access does not reach the project's invitations gets
inv.not_found from the list, not inv.permission_denied. Both now hide
Invite member and explain the tab. Drop a spec step that could not fail.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@peintnermax
peintnermax added this pull request to the merge queue Nov 26, 2026
Merged via the queue into main with commit b869030 Nov 26, 2026
17 checks passed
@peintnermax
peintnermax deleted the console-invite-permissions branch November 26, 2026 10:49
@github-project-automation github-project-automation Bot moved this from Inbox to Done in Engineering Kanban Nov 26, 2026

This branch was successfully deployed

1 active deployment
Preview — e9745db5 Deployed Nov 25, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

[FE] Hide "Invite member" for users who can't manage invitations [FE] Invite member dialog preselects the Admin role

2 participants