Skip to content

Latest commit

 

History

History
8 lines (6 loc) · 432 Bytes

File metadata and controls

8 lines (6 loc) · 432 Bytes

Closes #17

Summary of Changes

Fixed a critical syntax error in src/routes/users.js introduced in a prior commit attempting to resolve #17.

What changed

  • Escaped the single quote in the error response message on line 47: error: "Cannot modify another user's role"
  • This restores application compilation and confirms the previously added requireAuth logic for PATCH /api/users/:id/role securely works as intended.