Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/richdocuments.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorPranav Kant <pranavk@collabora.co.uk>2016-10-18 22:26:01 +0300
committerPranav Kant <pranavk@collabora.co.uk>2016-10-19 18:42:29 +0300
commit20d2ce582a89e5a9ea50d7c6b02a0e712df93d22 (patch)
treeddd8239c130a8599deb61ade1591b1d88faf73d3 /js
parent81e60581e4d658063af6bd5174a521819359fe2f (diff)
Don't ignore non-updatable files
Don't discriminate with these files; let them have the right to join the session or generate access token like other sessions
Diffstat (limited to 'js')
-rw-r--r--js/documents.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/js/documents.js b/js/documents.js
index f7495cbb..99c2dd3c 100644
--- a/js/documents.js
+++ b/js/documents.js
@@ -18,6 +18,7 @@ $.widget('oc.documentGrid', {
.then(function(){
that._render();
+ // TODO: Handle all of this logic by sending UserCanWrite: false to loolwsd
if (!documentsMain.isGuest) {
var editGroups = $('#edit_groups').val()
.split('|')
@@ -658,6 +659,7 @@ var documentsMain = {
documentsMain.esId = response.es_id;
documentsMain.memberId = response.member_id;
+ documentsMain.canEdit = response.permissions & OC.PERMISSION_UPDATE;
documentsMain.loadDocument();