Skip to content

Commit

Permalink
point to controller so that it updates with new bucket lists
Browse files Browse the repository at this point in the history
  • Loading branch information
Akopti8 committed Jul 5, 2024
1 parent 4a6edf4 commit 9759eeb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion blobstore/buckets.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ func (bh *BlobHandler) HandleListBuckets(c echo.Context) error {
return c.JSON(http.StatusInternalServerError, fmt.Errorf("error fetching user permissions: %s", err.Error()))
}

for _, controller := range bh.S3Controllers {
for i := range bh.S3Controllers {
controller := &bh.S3Controllers[i]
if bh.AllowAllBuckets {
result, err := controller.ListBuckets()
if err != nil {
Expand Down

0 comments on commit 9759eeb

Please sign in to comment.