From 309c8a008bab6090ffbad1a40dd8a2616730cc5c Mon Sep 17 00:00:00 2001 From: riyap Date: Sun, 15 Sep 2024 18:47:34 -0500 Subject: [PATCH] changing permission for change event --- src/services/events/events-router.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/events/events-router.ts b/src/services/events/events-router.ts index 9116f50..ebd998b 100644 --- a/src/services/events/events-router.ts +++ b/src/services/events/events-router.ts @@ -120,7 +120,7 @@ eventsRouter.post( eventsRouter.put( "/:EVENTID", - RoleChecker([Role.Enum.ADMIN], true), + RoleChecker([Role.Enum.STAFF], true), async (req, res, next) => { const eventId = req.params.EVENTID; try {