code: function (role) {
                return Role.count({
                  where: {
                    code: role,
                    ownerId: req[options.auth.model].id
                  },
                  limit: 1
                }).then(function (data) {
                  return data == 1
                }).catch(function (err) {
                  res.database(err)
                });
              }
docs: Checks for role
  
  @param {String} role Which role
  @returns {Promise.<Boolean>}