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/src
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2020-07-09 21:52:46 +0300
committerGitHub <noreply@github.com>2020-07-09 21:52:46 +0300
commit03ff318f074b4ef2b89ff67720496a3552a1a39b (patch)
treeb6d87d64fc176888a8a49db588daa41002debc01 /src
parent4110246583444961d7092a188a380bfb3856637e (diff)
parenta32d421de6646f9b24b43e0dca7b3b34c19a4187 (diff)
Merge pull request #1078 from nextcloud/bugfix/noid/revision-history-public
Hide revision history menu on public pages
Diffstat (limited to 'src')
-rw-r--r--src/document.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/document.js b/src/document.js
index 6ef30fb9..ad7ee856 100644
--- a/src/document.js
+++ b/src/document.js
@@ -218,7 +218,7 @@ const documentsMain = {
$(document.body).addClass('claro')
$(document.body).prepend(documentsMain.UI.container)
- const urlsrc = getWopiUrl({ fileId, title, readOnly: false, closeButton: true, revisionHistory: true })
+ const urlsrc = getWopiUrl({ fileId, title, readOnly: false, closeButton: true, revisionHistory: !!Config.get('userId') })
// access_token - must be passed via a form post
var accessToken = encodeURIComponent(documentsMain.token)