From 6a36d7fa864ec241d05a00b419ca48cf84ca41ff Mon Sep 17 00:00:00 2001
From: Vincent Petry <pvince81@owncloud.com>
Date: Mon, 7 Oct 2013 16:59:57 +0200
Subject: [PATCH] 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
---
 apps/files_sharing/templates/public.php | 1 +
 1 file changed, 1 insertion(+)

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">
-- 
GitLab