summaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin/lib/capabilities.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_trashbin/lib/capabilities.php')
-rw-r--r--apps/files_trashbin/lib/capabilities.php32
1 files changed, 32 insertions, 0 deletions
diff --git a/apps/files_trashbin/lib/capabilities.php b/apps/files_trashbin/lib/capabilities.php
new file mode 100644
index 00000000000..3f137d22b6f
--- /dev/null
+++ b/apps/files_trashbin/lib/capabilities.php
@@ -0,0 +1,32 @@
+<?php
+/**
+ * Copyright (c) Lukas Reschke <lukas@owncloud.com>
+ * This file is licensed under the Affero General Public License version 3 or
+ * later.
+ * See the COPYING-README file.
+ */
+
+namespace OCA\Files_Trashbin;
+
+
+/**
+ * Class Capabilities
+ *
+ * @package OCA\Files_Trashbin
+ */
+class Capabilities {
+
+ /**
+ * @return \OC_OCS_Result
+ */
+ public static function getCapabilities() {
+ return new \OC_OCS_Result(array(
+ 'capabilities' => array(
+ 'files' => array(
+ 'undelete' => true,
+ ),
+ ),
+ ));
+ }
+
+}