commitmentOwnerRemoves is the one predicate for reaching past collection restrictions and onto deleted ends. It applies only to removal, and an app principal never takes it past its install ceiling. The hidden-partner refusal uses it too, so only a caller who can remove is told they can.
(owner bool, user *models.User)
| 37 | // principal never takes it past its install ceiling. The hidden-partner |
| 38 | // refusal uses it too, so only a caller who can remove is told they can. |
| 39 | func commitmentOwnerRemoves(owner bool, user *models.User) bool { |
| 40 | return owner && !user.IsApp() |
| 41 | } |
| 42 | |
| 43 | // buildCommitmentAccess runs only for an already admitted workspace. All reads |
| 44 | // use q, including when a mutation reloads permissions inside its transaction. |
no test coverage detected