Skip to content

Commit a9488ab

Browse files
committed
fix forbid_rename from denying uploads
1 parent 050f611 commit a9488ab

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

code/go/0chain.net/blobbercore/handler/object_operation_handler.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -427,10 +427,6 @@ func (fsh *StorageHandler) CreateConnection(ctx context.Context, r *http.Request
427427
return nil, common.NewError("invalid_parameters", "Invalid allocation id passed."+err.Error())
428428
}
429429

430-
if !allocationObj.CanRename() {
431-
return nil, common.NewError("prohibited_allocation_file_options", "Cannot rename data in this allocation.")
432-
}
433-
434430
clientID := ctx.Value(constants.ContextKeyClient).(string)
435431
_ = ctx.Value(constants.ContextKeyClientKey).(string)
436432

0 commit comments

Comments
 (0)