Skip to content

Commit 1435ec7

Browse files
fix authorizeroles function call
1 parent a520a64 commit 1435ec7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routes/users.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ router.get("/:userId/intro", authenticate, authorizeRoles([SUPERUSER]), users.ge
2121
router.put("/self/intro", authenticate, userValidator.validateJoinData, users.addUserIntro);
2222
router.get("/:id/skills", users.getUserSkills);
2323
router.get("/:id/badges", getUserBadges);
24-
router.patch("/", authenticate, authorizeRoles[SUPERUSER], users.usersForInDiscord);
24+
router.patch("/", authenticate, authorizeRoles([SUPERUSER]), users.usersForInDiscord);
2525

2626
// upload.single('profile') -> multer inmemory storage of file for type multipart/form-data
2727
router.post("/picture", authenticate, upload.single("profile"), users.postUserPicture);

0 commit comments

Comments
 (0)