Files
calendar/packages/lib
Omar LópezandGitHub f4f4afad39 perf: optimize team admin check queries (#17681)
## What does this PR do?

Optimizes team and organization admin checks by:
- Removing unnecessary member data fetching in profile repository
- Simplifying team admin verification query to directly check membership
- Refactoring organization admin check to use the optimized team verification method

## Mandatory Tasks

- [x] I have self-reviewed the code
- [x] I have updated the developer docs in /docs
- [ ] I confirm automated tests are in place

## How should this be tested?

1. Log in as a team admin/owner
2. Verify team admin privileges still work correctly
3. Log in as an organization admin
4. Confirm organization admin permissions are maintained
5. Check that admin-only features remain accessible

Expected behavior:
- Team admins/owners should retain all their existing permissions
- Organization admins should maintain their administrative capabilities
- No degradation in admin functionality while improving query performance

## Checklist

- I haven't read the [contributing guide](https://github.com/calcom/cal.com/blob/main/CONTRIBUTING.md)
- My code doesn't follow the style guidelines of this project
- I haven't commented my code, particularly in hard-to-understand areas
- I haven't checked if my changes generate no new warnings
2024-11-15 19:00:18 -07:00
..
2024-06-11 14:35:53 +00:00
2024-11-13 15:14:31 -05:00
2023-01-20 15:19:12 +01:00
2024-04-27 18:14:37 +02:00
2023-07-28 15:11:44 +00:00
2024-11-14 18:57:51 +00:00
2024-03-08 15:13:29 +00:00
2022-03-09 15:56:05 -07:00
2022-05-26 11:07:14 -06:00
2022-03-23 15:00:30 -07:00
2022-03-23 15:00:30 -07:00
2023-04-25 19:39:47 -03:00
2023-12-19 11:20:54 -03:00
2024-10-04 13:44:50 -07:00
2024-05-10 08:47:57 +01:00
2024-04-09 18:29:39 -07:00
2024-10-24 09:10:27 -04:00
2023-11-11 11:16:35 +00:00