Skip to content

Commit

Permalink
Fix broken individual list GET API. Closes #2117.
Browse files Browse the repository at this point in the history
  • Loading branch information
knadh committed Oct 29, 2024
1 parent ca73e4f commit cf7d664
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ func initHTTPHandlers(e *echo.Echo, app *App) {

// Individual list permissions are applied directly within handleGetLists.
api.GET("/api/lists", handleGetLists)
api.GET("/api/lists/:id", listPerm(handleGetLists))
api.GET("/api/lists/:id", listPerm(handleGetList))
api.POST("/api/lists", pm(handleCreateList, "lists:manage_all"))
api.PUT("/api/lists/:id", listPerm(handleUpdateList))
api.DELETE("/api/lists/:id", listPerm(handleDeleteLists))
Expand Down

0 comments on commit cf7d664

Please # to comment.