summaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin/appinfo/routes.php
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2014-11-18 23:06:39 +0100
committerLukas Reschke <lukas@owncloud.com>2014-11-18 23:06:39 +0100
commit61641293f47914413179b60c8124e5e966c772bb (patch)
tree2843b5d0d15882c24d6af32a9265d08791c3d452 /apps/files_trashbin/appinfo/routes.php
parent81d112fb428719bbb4a821cb90397772ab1c6eaf (diff)
downloadnextcloud-server-61641293f47914413179b60c8124e5e966c772bb.tar.gz
nextcloud-server-61641293f47914413179b60c8124e5e966c772bb.zip
Only show undelete capability if files_trashbin is enabled
Fixes the OCS capability API at /ocs/v1.php/cloud/capabilities
Diffstat (limited to 'apps/files_trashbin/appinfo/routes.php')
-rw-r--r--apps/files_trashbin/appinfo/routes.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/files_trashbin/appinfo/routes.php b/apps/files_trashbin/appinfo/routes.php
index da268f4fdfd..56dbf382735 100644
--- a/apps/files_trashbin/appinfo/routes.php
+++ b/apps/files_trashbin/appinfo/routes.php
@@ -13,3 +13,7 @@ $this->create('files_trashbin_ajax_list', 'ajax/list.php')
->actionInclude('files_trashbin/ajax/list.php');
$this->create('files_trashbin_ajax_undelete', 'ajax/undelete.php')
->actionInclude('files_trashbin/ajax/undelete.php');
+
+
+// Register with the capabilities API
+\OC_API::register('get', '/cloud/capabilities', array('OCA\Files_Trashbin\Capabilities', 'getCapabilities'), 'files_trashbin', \OC_API::USER_AUTH);