-
-
Notifications
You must be signed in to change notification settings - Fork 9.2k
Description
- I have created my request on the Product Board before I submitted this issue
- I have looked at all the other requests on the Product Board before I submitted this issue
Please describe your feature request:
Allowing for backend modifications of the strapi-admin Should be something to consider specifically related to the adminUI administrators model to customize it. This is a similar concept to the users-permissions extensions for the users model.
Previously I was using a hook to make these changes: https://github.com/canonn-science/CAPIv2-Strapi/blob/production/hooks/admin-model/index.js
const _ = require('lodash');
module.exports = () => {
return {
async initialize() {
await _.merge(strapi.admin.models.administrator, {
connection: 'users'
});
},
};
};I did this as a "hacky" solution to to change the database connection used for this model, but as of beta.18 this method appears to be broken. I have also attempted to set this via the bootstrap file but my guess is this happens on initial bootup of Strapi so any changes after wouldn't really matter.
The admin itself in my opinion should be considered a "plugin" in itself as in theory you could run Strapi without the admin at all.
I did not create a product board entry for this as it seems like such a small change I'm not sure if it is something that should be included on there.