Blame view

sources/apps/files_trashbin/ajax/isEmpty.php 292 Bytes
31b7f2792   Kload   Upgrade to ownclo...
1
2
3
4
5
6
7
8
9
10
11
12
  <?php
  
  /*
   * Check if trash bin is empty to re-enable the deleted files button if needed
   */
  
  OCP\JSON::checkLoggedIn();
  OCP\JSON::callCheck();
  
  $trashStatus = OCA\Files_Trashbin\Trashbin::isEmpty(OCP\User::getUser());
  
  OCP\JSON::success(array("data" => array("isEmpty" => $trashStatus)));