]> source.dussan.org Git - nextcloud-server.git/commitdiff
Added isPublic flag in files_sharing template
authorVincent Petry <pvince81@owncloud.com>
Mon, 7 Oct 2013 14:59:57 +0000 (16:59 +0200)
committerVincent Petry <pvince81@owncloud.com>
Mon, 7 Oct 2013 14:59:57 +0000 (16:59 +0200)
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

apps/files_sharing/templates/public.php

index c164b3ea2b791f214ffd4ce5326dcd08b18a54f1..e53887c35902b4e3c7e996cebdc379070900e64c 100644 (file)
@@ -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">