diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2023-11-15 15:03:48 +0100 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2023-11-15 15:53:38 +0100 |
commit | 45541eb685c4f3a5742508afcc02d07e46e64b5f (patch) | |
tree | 48b853c62eba367e95f5c0d8b50697d1a2e5fa9c /lib/public/User | |
parent | ce6e3a3a01ee33fb010382cb33f527dcb8989544 (diff) | |
download | nextcloud-server-45541eb685c4f3a5742508afcc02d07e46e64b5f.tar.gz nextcloud-server-45541eb685c4f3a5742508afcc02d07e46e64b5f.zip |
feat(dav): Enable OOO UI and expose enabled via OCP
Makes the feature opt-out now that we have meaningful integrations based
on OOO data. Allows instances still to turn the feature off.
For apps like Mail that build on top of this feature we need to know if
the instance has the feature turned on or off. This is exposed as OCP
API, too.
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/public/User')
-rw-r--r-- | lib/public/User/IAvailabilityCoordinator.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/public/User/IAvailabilityCoordinator.php b/lib/public/User/IAvailabilityCoordinator.php index 113e3491714..749241f13bc 100644 --- a/lib/public/User/IAvailabilityCoordinator.php +++ b/lib/public/User/IAvailabilityCoordinator.php @@ -34,6 +34,15 @@ use OCP\IUser; */ interface IAvailabilityCoordinator { /** + * Check if the feature is enabled on this instance + * + * @return bool + * + * @since 28.0.0 + */ + public function isEnabled(): bool; + + /** * Get the user's out-of-office message, if any * * @since 28.0.0 |