Skip to content

Commit

Permalink
Merge branch '2.4.0' into ordered-list
Browse files Browse the repository at this point in the history
  • Loading branch information
aeschylus committed Apr 5, 2017
2 parents 13ce20f + b8739dd commit bb3647e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/src/annotations/annotationTooltip.js
Expand Up @@ -364,11 +364,11 @@
//if it is a manifest annotation, don't allow editing or deletion
//otherwise, check annotation in endpoint
var showUpdate = false;
if (annotation.endpoint !== 'manifest') {
if (typeof annotation.endpoint !== 'undefined' && annotation.endpoint !== 'manifest') {
showUpdate = annotation.endpoint.userAuthorize('update', annotation);
}
var showDelete = false;
if (annotation.endpoint !== 'manifest') {
if (typeof annotation.endpoint !== 'undefined' && annotation.endpoint !== 'manifest') {
showDelete = annotation.endpoint.userAuthorize('delete', annotation);
}
htmlAnnotations.push({
Expand Down

0 comments on commit bb3647e

Please sign in to comment.