Feat: list files for shared folder

This commit is contained in:
HFO4
2020-01-30 13:21:21 +08:00
parent a0c320b964
commit 0edbbfc9ea
7 changed files with 115 additions and 26 deletions

View File

@ -43,6 +43,7 @@ type group struct {
AllowTorrentDownload bool `json:"allowTorrentDownload"`
AllowArchiveDownload bool `json:"allowArchiveDownload"`
ShareFreeEnabled bool `json:"shareFree"`
ShareDownload bool `json:"shareDownload"`
}
type storage struct {
@ -78,6 +79,7 @@ func BuildUser(user model.User) User {
AllowTorrentDownload: aria2Option[2],
AllowArchiveDownload: user.Group.OptionsSerialized.ArchiveDownloadEnabled,
ShareFreeEnabled: user.Group.OptionsSerialized.ShareFreeEnabled,
ShareDownload: user.Group.OptionsSerialized.ShareDownloadEnabled,
},
}
}