Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access certain pages of team / organization pages with no access crashes app #15104

Closed
Shaik-Sirajuddin opened this issue May 18, 2024 · 1 comment 路 Fixed by #15106
Closed
Labels
馃悰 bug Something isn't working teams area: teams, round robin, collective, managed event-types
Milestone

Comments

@Shaik-Sirajuddin
Copy link
Contributor

Found a bug? Please fill out the sections below. 馃憤

Issue Summary

Official hosted version of cal.com crashes when access certain pages of teams , organization with no access ,

Steps to Reproduce

  1. Visit links
    /settings/teams/4/members
    /settings/teams/4/profile
  2. User is redirected and crash occurs

Any other relevant information. For example, why do you consider this a bug and what did you expect to happen instead?

Actual Results

  • user is redirected and app crashes

Expected Results

  • successful redirection

Evidence

#15061 (comment)

Copy link

dosubot bot commented May 18, 2024

The issue you're encountering with accessing certain team and organization pages without proper access rights, leading to an application crash, appears to be a bug related to how unauthorized access is handled. This problem is similar to the one reported in GitHub issue [CAL-3715], which involves users seeing an empty page instead of being redirected when attempting to access organization-related pages without proper authorization. The intended fix, as discussed in pull request #15103, aims to address unauthorized access by implementing server-side checks to ensure that only users with the appropriate roles and permissions can access certain pages.

The key aspects of the fix involve:

  • Verifying if the user is part of an organization and has an OWNER or ADMIN role.
  • Implementing checks to return a notFound response if the user does not meet the necessary criteria, effectively blocking unauthorized access.

However, it seems there might be an unhandled edge case or a bug in the access control or redirection logic, especially concerning team pages, which could be causing the crash. The application's mechanism for handling unauthorized access involves both OrganizationRolesGuard and server-side checks, designed to manage access based on user roles within an organization.

To further diagnose and potentially resolve this issue, it would be helpful to have more details about the error message or crash report you're encountering, as well as information about your user role and membership status within the team or organization you're attempting to access. This additional information could provide crucial insights into the cause of the crash and how to address it.

Details

Sources


About Dosu
This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.

Help me be more useful! Please leave a 馃憤 if this is helpful and 馃憥 if it is irrelevant.

To continue the conversation, mention @dosu.

@dosubot dosubot bot added teams area: teams, round robin, collective, managed event-types 馃悰 bug Something isn't working labels May 18, 2024
@dosubot dosubot bot added this to the v4.2 milestone May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
馃悰 bug Something isn't working teams area: teams, round robin, collective, managed event-types
Projects
None yet
1 participant