index.js
function(cb) {
            // Load policy modules
            sails.log.verbose('Loading policy modules from app...');
            sails.modules.loadPolicies(function modulesLoaded (err, modules) {
                if (err) return cb(err);
                _.extend(this.middleware, modules);
                //console.log('sails.middleware.policies', sails.middleware.policies);
                return cb();
            }.bind(this));
        }
function(cb) {
            // Load policy modules
            sails.log.verbose('Loading policy modules from app...');
            sails.modules.loadPolicies(function modulesLoaded (err, modules) {
                if (err) return cb(err);
                _.extend(this.middleware, modules);
                //console.log('sails.middleware.policies', sails.middleware.policies);
                return cb();
            }.bind(this));
        }
function ( cb ) { // Load policy modules sails . log . verbose ( 'Loading policy modules from app...' ) ; sails . modules . loadPolicies ( function modulesLoaded ( err , modules ) { if ( err ) return cb ( err ) ; _ . extend ( this . middleware , modules ) ; //console.log('sails.middleware.policies', sails.middleware.policies); return cb ( ) ; } . bind ( this ) ) ; }
Wipe everything and (re)load middleware from policies
(policies.js config is already loaded at this point)

@api private
Wipe everything and ( re ) load middleware from policies ( policies . js config is already loaded at this point )