-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: New Team Members Join Org as OWNER/ADMIN #13822
fix: New Team Members Join Org as OWNER/ADMIN #13822
Conversation
@SomayChauhan is attempting to deploy a commit to the cal Team on Vercel. A member of the Team first needs to authorize it. |
Thank you for following the naming conventions! 🙏 Feel free to join our discord and post your PR link. |
Graphite AutomationsA Graphite automation took an action on this PR • (02/22/24)1 label was added based on Keith Williams's automation, 'Add community label' A Graphite automation took an action on this PR • (02/22/24)1 reviewer was added based on Keith Williams's automation, 'Add consumer team as reviewer' |
📦 Next.js Bundle Analysis for @calcom/webThis analysis was generated by the Next.js Bundle Analysis action. 🤖 This PR introduced no changes to the JavaScript bundle! 🙌 |
@@ -285,7 +285,7 @@ export async function createNewUsersConnectToOrgIfExists({ | |||
data: { | |||
teamId: parentId, | |||
userId: createdUser.id, | |||
role: input.role as MembershipRole, | |||
role: MembershipRole.MEMBER, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So earlier if you invite someone to team as admin then we would also assign admin role of complete org too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thank you for this fix 🙏
What does this PR do?
Fixes #13773