From 6658a655f6821d74308faa0b1d7516107f72dcd9 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Wed, 28 Jan 2026 17:00:42 -0800 Subject: [PATCH] clean up --- weed/s3api/s3tables/handler_bucket_create.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/weed/s3api/s3tables/handler_bucket_create.go b/weed/s3api/s3tables/handler_bucket_create.go index b71622b3b..6b3f941d2 100644 --- a/weed/s3api/s3tables/handler_bucket_create.go +++ b/weed/s3api/s3tables/handler_bucket_create.go @@ -14,9 +14,8 @@ import ( // handleCreateTableBucket creates a new table bucket func (h *S3TablesHandler) handleCreateTableBucket(w http.ResponseWriter, r *http.Request, filerClient FilerClient) error { // Check permission - accountID := h.getAccountID(r) principal := h.getAccountID(r) - if !CanCreateTableBucket(principal, accountID, "") { + if !CanCreateTableBucket(principal, principal, "") { h.writeError(w, http.StatusForbidden, ErrCodeAccessDenied, "not authorized to create table buckets") return NewAuthError("CreateTableBucket", principal, "not authorized to create table buckets") }