aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin/ajax/isEmpty.php
blob: 2e54c7e77b989ec2c518201b76eea845d0930763 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<?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)));