mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-12-05 15:44:28 +00:00
feat(share): add allow download config to share links (#275)
* feat(share): add allow download config to share links * fix(share): hide download in public share list page when disabled
This commit is contained in:
+2
@@ -0,0 +1,2 @@
|
||||
-- AlterTable
|
||||
ALTER TABLE "share_links" ADD COLUMN "allow_download" BOOLEAN NOT NULL DEFAULT true;
|
||||
@@ -367,6 +367,7 @@ model ShareLink {
|
||||
expireAt DateTime? @map("expire_at")
|
||||
password String?
|
||||
isDisabled Boolean @default(false) @map("is_disabled")
|
||||
allowDownload Boolean @default(true) @map("allow_download")
|
||||
defaultSortOrder String? @map("default_sort_order")
|
||||
viewMode String? @map("view_mode")
|
||||
/// [ShareLinkFieldVisibility]
|
||||
|
||||
Reference in New Issue
Block a user