mirror of
https://github.com/strapi/strapi.git
synced 2025-07-23 00:51:17 +00:00

- 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
12 lines
265 B
JavaScript
12 lines
265 B
JavaScript
'use strict';
|
|
|
|
module.exports = ({ schema, key, attribute }, { remove }) => {
|
|
if (
|
|
attribute.type === 'relation' &&
|
|
attribute.target === 'plugin::users-permissions.user' &&
|
|
schema.uid === 'plugin::users-permissions.role'
|
|
) {
|
|
remove(key);
|
|
}
|
|
};
|