From f18df44c81b7bd112f4b16f3794e2964ae394111 Mon Sep 17 00:00:00 2001 From: asehgal220 Date: Wed, 15 Feb 2023 20:28:19 -0600 Subject: [PATCH] Update registration.go --- gateway/services/registration.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gateway/services/registration.go b/gateway/services/registration.go index 7b5813c1..84a9f58a 100644 --- a/gateway/services/registration.go +++ b/gateway/services/registration.go @@ -25,17 +25,17 @@ var RegistrationRoutes = arbor.RouteCollection{ "/registration/attendee/", alice.New(middleware.AuthMiddleware([]authtoken.Role{authtoken.UserRole}), middleware.IdentificationMiddleware).ThenFunc(GetRegistration).ServeHTTP, }, - arbor.Route{ + arbor.Route{ // Change back to authtoken.UserRole "CreateCurrentUserRegistration", "POST", "/registration/attendee/", - alice.New(middleware.AuthMiddleware([]authtoken.Role{authtoken.UserRole}), middleware.IdentificationMiddleware).ThenFunc(CreateRegistration).ServeHTTP, + alice.New(middleware.AuthMiddleware([]authtoken.Role{authtoken.StaffRole}), middleware.IdentificationMiddleware).ThenFunc(CreateRegistration).ServeHTTP, }, - arbor.Route{ + arbor.Route{ // Change back to authtoken.UserRole "UpdateCurrentUserRegistration", "PUT", "/registration/attendee/", - alice.New(middleware.AuthMiddleware([]authtoken.Role{authtoken.ApplicantRole}), middleware.IdentificationMiddleware).ThenFunc(UpdateRegistration).ServeHTTP, + alice.New(middleware.AuthMiddleware([]authtoken.Role{authtoken.StaffRole}), middleware.IdentificationMiddleware).ThenFunc(UpdateRegistration).ServeHTTP, }, arbor.Route{ "GetFilteredUserRegistrations",