app/core/applications/validator/validAccessEmpty.js
'use strict';
const _ = require('lodash');
const PermissionError = require('core/errors/factoryError')('PermissionError');
module.exports = function (e) {
if (_.isEmpty(e))
throw new PermissionError('You not authorize to do this!');
return e;
};