loleaflet/src/layer/marker/Annotation.js |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 94737a890d16af0f90d37286268e630b94cb8d0b
Author: Jan Holesovsky <ke...@collabora.com>
Date:   Mon Apr 24 20:09:47 2017 +0200

    loleaflet: Disable the Accept / Reject if the document is read only.
    
    Change-Id: I8d3f312d9d2dd75b44e5a779875688da1a31e123

diff --git a/loleaflet/src/layer/marker/Annotation.js 
b/loleaflet/src/layer/marker/Annotation.js
index e70c1e91..b3075ad6 100644
--- a/loleaflet/src/layer/marker/Annotation.js
+++ b/loleaflet/src/layer/marker/Annotation.js
@@ -155,7 +155,7 @@ L.Annotation = L.Layer.extend({
                this._contentAuthor = L.DomUtil.create(tagDiv, 
'loleaflet-annotation-content-author', tdAuthor);
                this._contentDate = L.DomUtil.create(tagDiv, 
'loleaflet-annotation-date', tdAuthor);
 
-               if (this._data.trackchange) {
+               if (this._data.trackchange && this._map._permission !== 
'readonly') {
                        var tdAccept = L.DomUtil.create(tagTd, 
'loleaflet-annotation-menubar', tr);
                        var acceptButton = L.DomUtil.create('button', 
'loleaflet-redline-accept-button', tdAccept);
                        var tdReject = L.DomUtil.create(tagTd, 
'loleaflet-annotation-menubar', tr);
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to