aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/templates/public.php
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2013-10-07 16:59:57 +0200
committerVincent Petry <pvince81@owncloud.com>2013-10-07 16:59:57 +0200
commit6a36d7fa864ec241d05a00b419ca48cf84ca41ff (patch)
tree60e459a89e2021a3b6a9d07121705540dd754dcf /apps/files_sharing/templates/public.php
parent0d492afee1ed6a6c032451181c20fd0b90f3105e (diff)
downloadnextcloud-server-6a36d7fa864ec241d05a00b419ca48cf84ca41ff.tar.gz
nextcloud-server-6a36d7fa864ec241d05a00b419ca48cf84ca41ff.zip
Added isPublic flag in files_sharing template
To make it possible for apps to find out whether they are running in public mode, the flag "isPublic" will now be present in the DOM. This is required to disable the editor app in public mode to fix #5059
Diffstat (limited to 'apps/files_sharing/templates/public.php')
-rw-r--r--apps/files_sharing/templates/public.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/files_sharing/templates/public.php b/apps/files_sharing/templates/public.php
index c164b3ea2b7..e53887c3590 100644
--- a/apps/files_sharing/templates/public.php
+++ b/apps/files_sharing/templates/public.php
@@ -2,6 +2,7 @@
<div id="notification" style="display: none;"></div>
</div>
+<input type="hidden" id="isPublic" name="isPublic" value="1">
<input type="hidden" name="dir" value="<?php p($_['dir']) ?>" id="dir">
<input type="hidden" name="downloadURL" value="<?php p($_['downloadURL']) ?>" id="downloadURL">
<input type="hidden" name="filename" value="<?php p($_['filename']) ?>" id="filename">