mirror of
https://github.com/nextcloud/server.git
synced 2026-07-15 04:51:46 -04:00
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
This commit is contained in:
parent
0d492afee1
commit
6a36d7fa86
1 changed files with 1 additions and 0 deletions
|
|
@ -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">
|
||||
|
|
|
|||
Loading…
Reference in a new issue