fix: DealOrgPerms missing VisibleLists field — permissions appeared to not save because visible_lists was silently dropped on unmarshal
This commit is contained in:
parent
3765adaf55
commit
aca4789b6c
11
lib/types.go
11
lib/types.go
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in New Issue