Browse Source

删除无用的方法

Signed-off-by: zouap <zouap@pcl.ac.cn>
pull/190/head
zouap 3 years ago
parent
commit
a36d39ce4d
1 changed files with 0 additions and 14 deletions
  1. +0
    -14
      routers/repo/dataset.go

+ 0
- 14
routers/repo/dataset.go View File

@@ -22,20 +22,6 @@ func MustEnableDataset(ctx *context.Context) {
}
}

func filterPrivateAttachments(ctx *context.Context, list []*models.Attachment) []*models.Attachment {
if ctx.Repo.CanWrite(models.UnitTypeDatasets) {
return list
} else {
var publicList []*models.Attachment
for _, attach := range list {
if !attach.IsPrivate {
publicList = append(publicList, attach)
}
}
return publicList
}
}

func newFilterPrivateAttachments(ctx *context.Context, list []*models.Attachment, repo *models.Repository) []*models.Attachment {

if ctx.Repo.CanWrite(models.UnitTypeDatasets) {


Loading…
Cancel
Save