Files
twenty/packages
Félix Malfait ecf21774dd Fix workspace hydratation (#12452)
We must separate the concept of hydratation which happens at the request
level (take the token and pass auth/user context), from the concept of
authorization which happens at the query/endpoint/mutation level.

Previously, hydratation exemption happened at the operation name level
which is not correct because the operation name is meaningless and
optional. Still this gave an impression of security by enforcing a
blacklist. So in this PR we introduce linting rule that aim to achieve a
similar behavior, now every api method has to have a guard. That way if
and endpoint is not protected by AuthUserGuard or AuthWorspaceGuard,
then it has to be stated explicitly next to its code.

---------

Co-authored-by: Charles Bochet <charles@twenty.com>
2025-06-09 14:14:32 +02:00
..
2025-06-06 18:35:30 +02:00
2025-06-06 18:35:30 +02:00
2025-06-06 18:35:30 +02:00
2025-06-06 18:35:30 +02:00
2025-06-06 18:35:30 +02:00
2025-06-06 18:35:30 +02:00
2025-06-06 18:35:30 +02:00