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:
parent
6c2d725c58
commit
6ff2ffd60c
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue