aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/DirectEditing
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2020-08-25 17:12:27 +0200
committerJulius Härtl <jus@bitgrid.net>2020-09-01 11:40:27 +0200
commite0ae37745a85cb08fd24f178d588a8659726f907 (patch)
tree5c18a0eb72d840639d94a0edb1233b1f59ec00ce /lib/public/DirectEditing
parent823f94bb0118d297df25ca9443e6c235a45bb5ab (diff)
downloadnextcloud-server-e0ae37745a85cb08fd24f178d588a8659726f907.tar.gz
nextcloud-server-e0ae37745a85cb08fd24f178d588a8659726f907.zip
Do not expose direct editing if no master key is available
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib/public/DirectEditing')
-rw-r--r--lib/public/DirectEditing/IManager.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/public/DirectEditing/IManager.php b/lib/public/DirectEditing/IManager.php
index bc45d0a45c6..ce39d014193 100644
--- a/lib/public/DirectEditing/IManager.php
+++ b/lib/public/DirectEditing/IManager.php
@@ -84,4 +84,12 @@ interface IManager {
* @return int number of deleted tokens
*/
public function cleanup(): int;
+
+ /**
+ * Check if direct editing is enabled
+ *
+ * @since 20.0.0
+ * @return bool
+ */
+ public function isEnabled(): bool;
}