-
Notifications
You must be signed in to change notification settings - Fork 7.9k
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: Users details leak for team booking when the team is private #17403
base: main
Are you sure you want to change the base?
Conversation
@anikdhabal is attempting to deploy a commit to the cal Team on Vercel. A member of the Team first needs to authorize it. |
Graphite Automations"Add consumer team as reviewer" took an action on this PR • (10/30/24)1 reviewer was added to this PR based on Keith Williams's automation. "Add community label" took an action on this PR • (10/30/24)1 label was added to this PR based on Keith Williams's automation. |
@@ -19,7 +19,7 @@ export type useScheduleForEventReturnType = ReturnType<typeof useScheduleForEven | |||
* Using this hook means you only need to use one hook, instead | |||
* of combining multiple conditional hooks. | |||
*/ | |||
export const useEvent = (props?: { fromRedirectOfNonOrgLink?: boolean }) => { | |||
export const useEvent = (props?: { fromRedirectOfNonOrgLink?: boolean; currentUserId?: number }) => { |
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.
This would make useEvent
dependent on useSession
and we should get the logged in user id on the server
What does this PR do?
Bug:-
Currently the team is Private, but
Mandatory Tasks (DO NOT REMOVE)
How should this be tested?
Checklist