mirror of
https://github.com/strapi/strapi.git
synced 2025-07-21 16:10:18 +00:00
12 lines
267 B
JavaScript
12 lines
267 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);
|
|
}
|
|
};
|