Skip to content

Commit

Permalink
Fixed loading annotations from document (#842)
Browse files Browse the repository at this point in the history
  • Loading branch information
michalrentka authored Feb 9, 2024
1 parent cf78835 commit 3ccb1ff
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions Zotero/Scenes/Detail/PDF/Models/PDFDocumentAnnotation.swift
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,7 @@ extension PDFDocumentAnnotation: PDFAnnotation {
}

func editability(currentUserId: Int, library: Library) -> AnnotationEditability {
switch library.identifier {
case .custom:
return .editable

case .group:
if !library.metadataEditable {
return .notEditable
}
return self.isAuthor ? .editable : .deletable
}
return .notEditable
}

func rects(boundingBoxConverter: AnnotationBoundingBoxConverter) -> [CGRect] {
Expand Down

0 comments on commit 3ccb1ff

Please sign in to comment.