Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(roles): team admin is allowed to add a project to other teams (#8…
…2453) Since #49229, Team Admins are allowed to share the project they have admin access, with other teams. The original PR implemented this feature from the projectTeams side. However, it should also be possible to do the same action (team+project association) from teamProjects view, as they both use the same backend endpoint. Also, removing the yellow permission alert as it no longer applies: > These settings can only be edited by users with the organization-level owner, manager, or team-level admin roles. Note, this is only a Frontend fix, there is no security impact. ## Example `go` project belongs to both `#go-admin` and `#go-contributor` teams. `go2` project belongs to `#go2` team. `go3` project belongs to `#go3` team. A user has Team Admin role in `#go-admin` and `#go2`, but Contributor role in `#go-contributor` and `#go3`. In this setup, a user should be able to share the `go2` project from the `#go-contributor` team view (but not `#go3`). ## Before this PR ![image](https://github.com/user-attachments/assets/9c6193c2-63dd-4505-b3b8-bd949d30a46c) ## After ![image](https://github.com/user-attachments/assets/c2a0fe4a-0bd4-4806-941a-9e5a19e530b7) ![image](https://github.com/user-attachments/assets/9ef501cb-55a5-4cc0-885a-d8fcf69869a1)
- Loading branch information