Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Improve the check whether the PDF annotation is enabled.
Change-Id: I28a9b46d139edfb6dffe2afde39bd767ac6a7af3
Signed-off-by: Jan Holesovsky <kendy@collabora.com>
  • Loading branch information
kendy committed Nov 9, 2020
1 parent 6c2d725 commit 6ff2ffd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions loleaflet/src/control/Control.Menubar.js
Expand Up @@ -1466,6 +1466,11 @@ L.Control.Menubar = L.Control.extend({
case 'pagesetup':
case 'watermark':
return false;
case 'insertcomment':
case 'savecomments':
if (!this._map.isPermissionEditForComments()) {
return false;
}
}
}

Expand Down

0 comments on commit 6ff2ffd

Please sign in to comment.