Repository navigation
fix(console): require a role in Invite member and hide inviting from non-admins - #3339
Merged
Merged
Conversation
…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>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
🦋 Changeset detectedLatest commit: e9745db The changes in this PR will be included in the next version bump. This PR includes changesets to release 27 packages
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>
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Context
Summary
--relationis required.403 inv.permission_denied). The page uses that answer:e2e/journey/src/claim.spec.tsnow picks Admin before creating.Validation
turbo run lint typecheck test --filter=@zitadel/console(1122 tests).tsc --noEmit -p e2e/tsconfig.json.dev:claimagainst 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.Release notes / changeset
.changeset/console-invite-role-and-permissions.md(@zitadel/server, patch).Notes
?tab=invitationslink still lands somewhere that explains itself.🤖 Generated with Claude Code