更新时间:2022-05-22 23:46:47
在生产环境中没有禁用管理员的选项.
There is no option to disable the admin in production.
您可以使用 _admin
重命名 admin
文件夹(或删除文件夹)更新 plugin/users-permissions/middlewares/users-permissions/index.js
文件并注释以下几行:
You can rename the admin
folder with _admin
(or delete the folder)
Update the plugin/users-permissions/middlewares/users-permissions/index.js
file and comment these lines:
// _.forEach(strapi.admin.config.routes, value => {
// if (_.get(value.config, 'policies')) {
// value.config.policies.unshift('plugins.users-permissions.permissions');
// }
// });
然后您将无法访问管理面板
Then you will not be able to access to the admin pannel