Skip to content

Commit 9224c45

Browse files
committed
feat(contract): update contract document generation handler to require coordinator authorization
1 parent df0adb0 commit 9224c45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/src/router/init.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ func InitializeRouter() {
179179
companyRouter.HandleFunc("/{id}/employers", authMember(updateEmployersOrder)).Methods("PUT")
180180
companyRouter.HandleFunc("/{id}/employer", authMember(addEmployer)).Methods("POST")
181181
companyRouter.HandleFunc("/{id}/employer/{rep}", authMember(removeEmployer)).Methods("DELETE")
182-
companyRouter.HandleFunc("/{id}/contract/docx", authMember(generateCompanyContractDocx)).Methods("POST")
182+
companyRouter.HandleFunc("/{id}/contract/docx", authCoordinator(generateCompanyContractDocx)).Methods("POST")
183183

184184
// speaker handlers
185185
speakerRouter := r.PathPrefix("/speakers").Subrouter()

0 commit comments

Comments
 (0)