Skip to content

Commit

Permalink
fix(collaborators): add required middleware (#586)
Browse files Browse the repository at this point in the history
* fix(collaborators): add required middleware

* chore(review): add missing await
  • Loading branch information
seaerchin authored and alexanderleegs committed Mar 16, 2023
1 parent ef629a7 commit 84d81d3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/routes/v2/authenticated/collaborators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,10 @@ export class CollaboratorsRouter {

getRouter() {
const router = express.Router({ mergeParams: true })
router.use(this.authorizationMiddleware.verifyIsEmailUser)
router.use(
attachSiteHandler,
this.authorizationMiddleware.verifyIsEmailUser
)
router.get(
"/role",
attachSiteHandler,
Expand Down

0 comments on commit 84d81d3

Please sign in to comment.