diff --git a/loleaflet/src/control/Control.Menubar.js b/loleaflet/src/control/Control.Menubar.js index 8fbdcb8c8..263a0ee7e 100644 --- a/loleaflet/src/control/Control.Menubar.js +++ b/loleaflet/src/control/Control.Menubar.js @@ -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; + } } }