(doc *Document, importAllowed, docExists bool)
| 84 | } |
| 85 | |
| 86 | func validateExistingDoc(doc *Document, importAllowed, docExists bool) error { |
| 87 | if !importAllowed && docExists && !doc.HasValidSyncData() { |
| 88 | return base.HTTPErrorf(409, "Not imported") |
| 89 | } |
| 90 | return nil |
| 91 | } |
no test coverage detected