Skip to content

Commit

Permalink
fix(backend): /items is admin only
Browse files Browse the repository at this point in the history
  • Loading branch information
yyewolf committed Aug 23, 2023
1 parent 9ed70d6 commit 800e8c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/api/items.go
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ func (s *Server) GetItemPicture(c echo.Context, categoryId autogen.UUID, itemId
// (GET /items)
func (s *Server) GetAllItems(c echo.Context, params autogen.GetAllItemsParams) error {
// Get account from cookie
account, err := MustGetUser(c)
account, err := MustGetAdmin(c)
if err != nil {
return nil
}
Expand Down

0 comments on commit 800e8c5

Please sign in to comment.