boot/setup.js
function isOOB (cb) {
  User.listByRoles('authority', function (err, users) {
    if (err) { return cb(err) }
    // return true if there are no authority users
    return cb(null, !users || !users.length)
  })
}
function isOOB (cb) {
  User.listByRoles('authority', function (err, users) {
    if (err) { return cb(err) }
    // return true if there are no authority users
    return cb(null, !users || !users.length)
  })
}
function isOOB ( cb ) { User . listByRoles ( 'authority' , function ( err , users ) { if ( err ) { return cb ( err ) } // return true if there are no authority users return cb ( null , ! users || ! users . length ) } ) }
Check if server is in out-of-box mode
Check if server is in out - of - box mode