diff --git a/apps/files_trashbin/templates/index.php b/apps/files_trashbin/templates/index.php
index 615cf8bdd009f0fbff43113cff296de50e6f948f..b6c61c9b1c3ea136b2727fda463d8e385a505668 100644
--- a/apps/files_trashbin/templates/index.php
+++ b/apps/files_trashbin/templates/index.php
@@ -6,6 +6,7 @@
 <div id="emptycontent" class="hidden"><?php p($l->t('Nothing in here. Your trash bin is empty!'))?></div>
 
 <input type="hidden" id="permissions" value="0"></input>
+<input type="hidden" id="disableSharing" data-status="<?php p($_['disableSharing']); ?>"></input>
 <input type="hidden" name="dir" value="<?php p($_['dir']) ?>" id="dir">
 
 <table id="filestable">