diff --git a/src/components/AnnotationList.vue b/src/components/AnnotationList.vue index 2360fa45..ceb984a5 100644 --- a/src/components/AnnotationList.vue +++ b/src/components/AnnotationList.vue @@ -64,9 +64,17 @@ export default { }, }, methods: { - canRemove(annotation) { + userOwnsAnnotation(annotation) { return this.$jskos.annotationCreatorMatches(annotation, this.userUris) }, + canRemove(annotation) { + return !!this.provider?.isAuthorizedFor({ + type: "annotations", + action: "delete", + user: this.user, + crossUser: !this.userOwnsAnnotation(annotation), + }) + }, async remove(index) { if (!this.provider) { return false