message: fix(gql): query users, improves validations
diff: @@ -33,12 +33,13 @@ module.exports = {
  async users(parent, args, context, info) {
  await validateServerRole(context, 'server:user')
  -
  - if (!args.id)
  await validateScopes(context.scopes, 'profile:read')
  - else
  await validateScopes(context.scopes, 'users:read')
  + if (!args.query) {
  + throw new UserInputError('You must provide a search query.')
  + }
  +
  return await findUsers(args.query)
  },
  