mirror of
https://github.com/strapi/strapi.git
synced 2025-07-23 09:00:19 +00:00
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);
|
||
|
}
|
||
|
};
|