aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorHamza Mahjoubi <hamzamahjoubi221@gmail.com>2025-03-10 20:35:27 +0100
committerAndy Scherzinger <info@andy-scherzinger.de>2025-03-19 23:46:57 +0100
commit7e6801a9af4520975e9280658caa22bffaf1b6e0 (patch)
tree14214dad53d40ec024f7d6d341ac9735a367d786 /lib/public
parent806a3d1e392240a43357f85734b1a5389754fa6e (diff)
downloadnextcloud-server-backport/51380/stable31.tar.gz
nextcloud-server-backport/51380/stable31.zip
fix(cardav): only show useres from enabled addressBooks in contacts menubackport/51380/stable31
Signed-off-by: Hamza Mahjoubi <hamzamahjoubi221@gmail.com>
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/IAddressBookEnabled.php26
1 files changed, 26 insertions, 0 deletions
diff --git a/lib/public/IAddressBookEnabled.php b/lib/public/IAddressBookEnabled.php
new file mode 100644
index 00000000000..ad93aa3f59a
--- /dev/null
+++ b/lib/public/IAddressBookEnabled.php
@@ -0,0 +1,26 @@
+<?php
+
+declare(strict_types=1);
+
+/**
+ * SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors"
+ * SPDX-License-Identifier: AGPL-3.0-only
+ */
+// use OCP namespace for all classes that are considered public.
+// This means that they should be used by apps instead of the internal Nextcloud classes
+
+namespace OCP;
+
+/**
+ * IAddressBook Interface extension for checking if the address book is enabled
+ *
+ * @since 32.0.0
+ */
+interface IAddressBookEnabled extends IAddressBook {
+ /**
+ * Check if the address book is enabled
+ * @return bool
+ * @since 32.0.0
+ */
+ public function isEnabled(): bool;
+}