fix: DealOrgPerms missing VisibleLists field — permissions appeared to not save because visible_lists was silently dropped on unmarshal

This commit is contained in:
James 2026-03-17 21:32:06 -04:00
parent 3765adaf55
commit aca4789b6c
1 changed files with 6 additions and 5 deletions

View File

@ -95,11 +95,12 @@ type DealOrgData struct {
// DealOrgPerms defines what an org can do in a deal.
type DealOrgPerms struct {
Download string `json:"download"` // "full" | "watermark" | "none"
Upload bool `json:"upload"`
AddRequestLists bool `json:"add_request_lists"`
EditRequestLists bool `json:"edit_request_lists"`
FolderAccess string `json:"folder_access"` // "all" | "assigned"
Download string `json:"download"` // "full" | "watermark" | "none"
Upload bool `json:"upload"`
AddRequestLists bool `json:"add_request_lists"`
EditRequestLists bool `json:"edit_request_lists"`
FolderAccess string `json:"folder_access"` // "all" | "assigned"
VisibleLists interface{} `json:"visible_lists,omitempty"` // "all" | []string of entry_ids
}
// DealOrgMember is a person associated with a deal org.