diff options
author | Pranav Kant <pranavk@collabora.co.uk> | 2016-10-18 22:26:01 +0300 |
---|---|---|
committer | Pranav Kant <pranavk@collabora.co.uk> | 2016-10-19 18:42:29 +0300 |
commit | 20d2ce582a89e5a9ea50d7c6b02a0e712df93d22 (patch) | |
tree | ddd8239c130a8599deb61ade1591b1d88faf73d3 /js | |
parent | 81e60581e4d658063af6bd5174a521819359fe2f (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.js | 2 |
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(); |