mirror of
https://github.com/strapi/strapi.git
synced 2025-12-28 07:33:17 +00:00
Update branch
Merge branch 'user-permissions' of github.com:strapi/strapi into user-permissions
This commit is contained in:
commit
d995d4feef
@ -165,7 +165,7 @@ const mountMiddlewares = function (files, cwd) {
|
||||
loaded: false
|
||||
};
|
||||
|
||||
if (endsWith(p, 'index.js')) {
|
||||
if (endsWith(p, 'index.js') && !this.middleware[name].load) {
|
||||
// Lazy loading.
|
||||
Object.defineProperty(this.middleware[name], 'load', {
|
||||
configurable: false,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user