From e7d543278297fd8b119f768e0d7a6d2fe48b7c88 Mon Sep 17 00:00:00 2001 From: Louis Chemineau Date: Wed, 5 Jul 2023 15:52:13 +0200 Subject: Enable all files versions features when groupfolders is enabled Signed-off-by: Louis Chemineau --- apps/files_versions/lib/Capabilities.php | 6 ++---- apps/files_versions/src/components/Version.vue | 14 ++++++++++++-- 2 files changed, 14 insertions(+), 6 deletions(-) (limited to 'apps') diff --git a/apps/files_versions/lib/Capabilities.php b/apps/files_versions/lib/Capabilities.php index afc6fa39da7..411a47f6c4a 100644 --- a/apps/files_versions/lib/Capabilities.php +++ b/apps/files_versions/lib/Capabilities.php @@ -46,13 +46,11 @@ class Capabilities implements ICapability { * @return array */ public function getCapabilities() { - $groupFolderInstalled = $this->appManager->isInstalled('groupfolders'); - return [ 'files' => [ 'versioning' => true, - 'version_labeling' => !$groupFolderInstalled && $this->config->getSystemValueBool('enable_version_labeling', true), - 'version_deletion' => !$groupFolderInstalled && $this->config->getSystemValueBool('enable_version_deletion', true), + 'version_labeling' => $this->config->getSystemValueBool('enable_version_labeling', true), + 'version_deletion' => $this->config->getSystemValueBool('enable_version_deletion', true), ] ]; } diff --git a/apps/files_versions/src/components/Version.vue b/apps/files_versions/src/components/Version.vue index a801c6beac8..93dfb95b8b7 100644 --- a/apps/files_versions/src/components/Version.vue +++ b/apps/files_versions/src/components/Version.vue @@ -46,7 +46,7 @@