Browse Source

feat: dafault to is_private

tags/v1.21.12.1
colorfulberry 5 years ago
parent
commit
c4f6519f43
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      routers/repo/attachment.go

+ 1
- 1
routers/repo/attachment.go View File

@@ -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,


Loading…
Cancel
Save