From c4f6519f4374a850f56e65a9beeab340a0ade3c3 Mon Sep 17 00:00:00 2001 From: colorfulberry Date: Mon, 1 Jun 2020 16:06:04 +0800 Subject: [PATCH] feat: dafault to is_private --- routers/repo/attachment.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routers/repo/attachment.go b/routers/repo/attachment.go index a9b29368f..da429e06f 100644 --- a/routers/repo/attachment.go +++ b/routers/repo/attachment.go @@ -59,7 +59,7 @@ func UploadAttachment(ctx *context.Context) { datasetID, _ := strconv.ParseInt(ctx.Req.FormValue("dataset_id"), 10, 64) attach, err := models.NewAttachment(&models.Attachment{ - IsPrivate: false, + IsPrivate: true, UploaderID: ctx.User.ID, Name: header.Filename, DatasetID: datasetID,