diff --git a/packages/strapi-bookshelf/lib/index.js b/packages/strapi-bookshelf/lib/index.js index 94f980b4c9..0ce980f315 100755 --- a/packages/strapi-bookshelf/lib/index.js +++ b/packages/strapi-bookshelf/lib/index.js @@ -45,11 +45,6 @@ module.exports = function(strapi) { // Initialize collections _.set(strapi, 'bookshelf.collections', {}); - // Return callback if there is no model - if (_.isEmpty(strapi.models)) { - return cb(); - } - const connections = _.pickBy(strapi.config.connections, { connector: 'strapi-bookshelf' }); @@ -91,14 +86,6 @@ module.exports = function(strapi) { _.assign(models, _.pickBy(strapi.models, (model) => model.connection === undefined)); } - // Return callback if there is no model - if (_.isEmpty(models)) { - cb(); - - // Break the loop. - return false; - } - const loadedHook = _.after(_.size(models), () => { done(); }); diff --git a/packages/strapi-plugin-users-permissions/config/roles.json b/packages/strapi-plugin-users-permissions/config/roles.json index 3c72c5a228..b03f21e5ef 100644 --- a/packages/strapi-plugin-users-permissions/config/roles.json +++ b/packages/strapi-plugin-users-permissions/config/roles.json @@ -252,34 +252,7 @@ } }, "application": { - "controllers": { - "article": { - "find": { - "enabled": true, - "policy": "" - }, - "findOne": { - "enabled": true, - "policy": "" - }, - "create": { - "enabled": true, - "policy": "" - }, - "update": { - "enabled": true, - "policy": "" - }, - "destroy": { - "enabled": true, - "policy": "" - }, - "identity": { - "enabled": true, - "policy": "" - } - } - } + "controllers": {} } } }, @@ -536,34 +509,7 @@ } }, "application": { - "controllers": { - "article": { - "find": { - "enabled": false, - "policy": "" - }, - "findOne": { - "enabled": false, - "policy": "" - }, - "create": { - "enabled": false, - "policy": "" - }, - "update": { - "enabled": false, - "policy": "" - }, - "destroy": { - "enabled": false, - "policy": "" - }, - "identity": { - "enabled": false, - "policy": "" - } - } - } + "controllers": {} } } }