10 Commits

Author SHA1 Message Date
nathan-pichon
0168a2758a
feat(core-utils): add mapAsync and reduceAsync utils 2023-01-17 15:08:14 +01:00
Alexandre Bodin
cf49ddbbfc Prettier and backend fix 2022-08-11 10:20:49 +02:00
harimkims
5959788352 Refactor sanitizers module to be maintained easily 2022-05-07 17:04:12 +09:00
chisus
0b60be2aca Add sanitizers registry to container
- Remove users-permissions sanitization step in core
- Move sanitization functions to users-permissions plugin utils
- Add sanitizers registry to container for manage sanitizer functions in core so that we can get/add sanitizers anywhere we want
2022-04-21 00:29:35 +09:00
harimkims
4a71a9c93c Add new sanitizer to remove user relation from role entities 2022-03-03 22:45:55 +09:00
Convly
25e62db93a use 'sanitizers' instead of 'utils' 2021-11-10 17:08:54 +01:00
Convly
8d4f8ddd57 Simplify & abstract common sanitize logic 2021-11-08 15:52:42 +01:00
Convly
7c560e3b94 Move the eventHub sanitize logic to the eventHub declaration 2021-11-05 10:36:10 +01:00
Convly
d6516116b2 Move pipeAsync to @strapi/utils 2021-11-04 16:43:27 +01:00
Jean-Sébastien Herbaux
7f285fb755
[V4] Enhanced sanitize & remove restricted relations from content API's payloads (#11411)
* Rework sanitizeEntity, first iteration

* remove console.log

* Remove useless comments

* Fix e2e tests

* Fix up user e2e test

* Fix remove-restricted-relations visitor

* Handle grapqhql resolver, prevent access to restricted relations

* Handle polymorphic relation in the related visitor

* Remove morph attribute if empty

* Use only the find action to check if the relation is allowed
2021-11-04 15:47:53 +01:00