-
Notifications
You must be signed in to change notification settings - Fork 7k
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: 500 on forbidden showing up in logs #14636
fix: 500 on forbidden showing up in logs #14636
Conversation
Thank you for following the naming conventions! 🙏 Feel free to join our discord and post your PR link. |
@@ -56,8 +56,7 @@ export const eventOwnerProcedure = authedProcedure | |||
})(); | |||
|
|||
if (!isAuthorized) { | |||
console.warn(`User ${ctx.user.id} attempted to an access an event ${event.id} they do not own.`); |
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.
We don't need this information - also FORBIDDEN is the right code to throw here.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
3 Ignored Deployments
|
Graphite Automations"Add foundation team as reviewer" took an action on this PR • (04/17/24)1 reviewer was added to this PR based on Keith Williams's automation. |
📦 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! 🙌 |
Current Playwright Test Results Summary✅ 302 Passing - Run may still be in progress, this comment will be updated as current testing workflow or job completes... (Last updated on 04/17/2024 03:59:19pm UTC) Run DetailsRunning Workflow PR Update on Github Actions Commit: 881a1b8 Started: 04/17/2024 03:55:15pm UTC
|
Test Case | Last 7 days Failures | Last 7 days Flakes |
---|---|---|
Update Profile Can update a users email (verification enabled)
Retry 2 • Retry 1 • Initial Attempt |
5.69% (17)17 / 299 runsfailed over last 7 days |
23.75% (71)71 / 299 runsflaked over last 7 days |
📄 apps/web/playwright/teams.e2e.ts • 1 Flake
Test Case Results
Test Case | Last 7 days Failures | Last 7 days Flakes |
---|---|---|
Teams - NonOrg -- future Team Onboarding Invite Members
Retry 2 • Retry 1 • Initial Attempt |
7.19% (22)22 / 306 runsfailed over last 7 days |
37.58% (115)115 / 306 runsflaked over last 7 days |
📄 packages/app-store/routing-forms/playwright/tests/basic.e2e.ts • 1 Flake
Test Case Results
Test Case | Last 7 days Failures | Last 7 days Flakes |
---|---|---|
Routing Forms Seeded Routing Form Test preview should return correct route
Retry 1 • Initial Attempt |
0.34% (1)1 / 294 runfailed over last 7 days |
37.07% (109)109 / 294 runsflaked over last 7 days |
📄 packages/embeds/embed-core/playwright/tests/inline.e2e.ts • 1 Flake
Test Case Results
Test Case | Last 7 days Failures | Last 7 days Flakes |
---|---|---|
Inline Iframe Inline Iframe - Configured with Dark Theme
Retry 1 • Initial Attempt |
0.34% (1)1 / 296 runfailed over last 7 days |
53.72% (159)159 / 296 runsflaked over last 7 days |
📄 apps/web/playwright/integrations-stripe.e2e.ts • 1 Flake
Test Case Results
Test Case | Last 7 days Failures | Last 7 days Flakes |
---|---|---|
Stripe integration when enabling Stripe, team credentialId is included
Retry 1 • Initial Attempt |
3.29% (10)10 / 304 runsfailed over last 7 days |
1.32% (4)4 / 304 runsflaked over last 7 days |
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.
Logic looks good. Some type errors to fix though
type check is still failing @emrysal |
What does this PR do?
When accessing an event type that doesn't exist or doesn't belong to you, redirect back to the /event-types page instead of throwing a 500 error.
Future improvement, show toast or error, but practically this should happen only when intentional.