Skip to content

Commit

Permalink
fix: allow service-to-service requests to questions
Browse files Browse the repository at this point in the history
  • Loading branch information
drodil committed Jan 17, 2024
1 parent 4da20f9 commit d77be6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/qeta-backend/src/service/routes/questions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const questionsRoutes = (router: Router, options: RouterOptions) => {
// GET /questions
router.get(`/questions`, async (request, response) => {
// Validation
const username = await getUsername(request, options);
const username = await getUsername(request, options, true);
await checkPermissions(request, qetaReadPermission, options);
const validateQuery = ajv.compile(QuestionsQuerySchema);
if (!validateQuery(request.query)) {
Expand Down

0 comments on commit d77be6f

Please sign in to comment.