calcom / cal.com

Scheduling infrastructure for absolutely everyone.
https://cal.com
Other
31.1k stars 7.48k forks source link

Unintented access to all team bookings for a member of team via api ( update , cancel , e.t.c ) #15852

Closed Shaik-Sirajuddin closed 3 days ago

Shaik-Sirajuddin commented 1 month ago

Found a bug? Please fill out the sections below. 👍

Issue Summary

A member of team is able to gain access to team bookings ( update , cancel , e.t.c ) in case of round robin event type , even if the user is not present as round robin host

Actual Results

Expected Results

Evidence

Loom : Video

Shaik-Sirajuddin commented 1 month ago

In general admin of team would have access for all team bookings Currently api allows any user of team to have this privilege Unsure whether this is expected behaviour

Amit91848 commented 1 month ago

In case User C is owner / admin of the team, it can delete / modify any bookings of that team irrespective of whether the user is in the booking or not. There is a PR open to allow admin / owner to cancel the booking via the app too

CarinaWolli commented 1 week ago

Can confirm that currently, members can access all team bookings. Members should only be able to access bookings they are part of