mirror of
https://github.com/strapi/strapi.git
synced 2025-11-12 16:22:10 +00:00
Update user model metadatas configurations
This commit is contained in:
parent
0c078d0d2b
commit
8c1f25a058
@ -15,7 +15,7 @@ async function validateCustomConfig(model, schema) {
|
|||||||
}).validate(model.config);
|
}).validate(model.config);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
throw new Error(
|
throw new Error(
|
||||||
`Invalid Model configuration for model ${model.uid} Verify your Model.config.js(on) file:\n - ${error.message}\n`
|
`Invalid Model configuration for model ${model.uid}. Verify your {{modelName}}.config.js(on) file:\n - ${error.message}\n`
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -5,5 +5,15 @@ module.exports = {
|
|||||||
visible: false,
|
visible: false,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
provider: {
|
||||||
|
edit: {
|
||||||
|
visible: false,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
role: {
|
||||||
|
edit: {
|
||||||
|
mainField: 'name',
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user