This commit is contained in:
Chris Lu
2026-01-28 17:00:42 -08:00
parent c5eadadf5a
commit 6658a655f6

View File

@@ -14,9 +14,8 @@ import (
// handleCreateTableBucket creates a new table bucket // handleCreateTableBucket creates a new table bucket
func (h *S3TablesHandler) handleCreateTableBucket(w http.ResponseWriter, r *http.Request, filerClient FilerClient) error { func (h *S3TablesHandler) handleCreateTableBucket(w http.ResponseWriter, r *http.Request, filerClient FilerClient) error {
// Check permission // Check permission
accountID := h.getAccountID(r)
principal := 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") h.writeError(w, http.StatusForbidden, ErrCodeAccessDenied, "not authorized to create table buckets")
return NewAuthError("CreateTableBucket", principal, "not authorized to create table buckets") return NewAuthError("CreateTableBucket", principal, "not authorized to create table buckets")
} }