diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2013-07-30 12:48:41 +0200 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2013-07-30 12:48:41 +0200 |
commit | 6f20e081e47ac5ef2f2dde3f4cc9cdb0bf562283 (patch) | |
tree | f6ec49c99d6cd9207e7d7ab67d2756b4252ff741 /apps/files_trashbin/ajax | |
parent | 10939b0bdfed1474840fbf43e0cff0ef74f7846f (diff) | |
download | nextcloud-server-6f20e081e47ac5ef2f2dde3f4cc9cdb0bf562283.tar.gz nextcloud-server-6f20e081e47ac5ef2f2dde3f4cc9cdb0bf562283.zip |
added missing isEmpty ajax file
Diffstat (limited to 'apps/files_trashbin/ajax')
-rw-r--r-- | apps/files_trashbin/ajax/isEmpty.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/apps/files_trashbin/ajax/isEmpty.php b/apps/files_trashbin/ajax/isEmpty.php new file mode 100644 index 00000000000..2e54c7e77b9 --- /dev/null +++ b/apps/files_trashbin/ajax/isEmpty.php @@ -0,0 +1,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))); + + |