Improve the check whether the PDF annotation is enabled.

Change-Id: I28a9b46d139edfb6dffe2afde39bd767ac6a7af3
Signed-off-by: Jan Holesovsky <kendy@collabora.com>
This commit is contained in:
Jan Holesovsky 2020-11-06 19:08:51 +01:00
parent 6c2d725c58
commit 6ff2ffd60c

View file

@ -1466,6 +1466,11 @@ L.Control.Menubar = L.Control.extend({
case 'pagesetup': case 'pagesetup':
case 'watermark': case 'watermark':
return false; return false;
case 'insertcomment':
case 'savecomments':
if (!this._map.isPermissionEditForComments()) {
return false;
}
} }
} }