Enable version features again with S3 versioning

Signed-off-by: Benjamin Somers <bsomers@resel.fr>
This commit is contained in:
Benjamin Somers 2023-06-13 15:06:36 +02:00
parent aedb4bef1e
commit 75e04614c1

View file

@ -46,13 +46,13 @@ class Capabilities implements ICapability {
* @return array
*/
public function getCapabilities() {
$groupFolderOrS3VersioningInstalled = $this->appManager->isInstalled('groupfolders') || $this->appManager->isInstalled('files_versions_s3');
$groupFolderInstalled = $this->appManager->isInstalled('groupfolders');
return [
'files' => [
'versioning' => true,
'version_labeling' => !$groupFolderOrS3VersioningInstalled && $this->config->getSystemValueBool('enable_version_labeling', true),
'version_deletion' => !$groupFolderOrS3VersioningInstalled && $this->config->getSystemValueBool('enable_version_deletion', true),
'version_labeling' => !$groupFolderInstalled && $this->config->getSystemValueBool('enable_version_labeling', true),
'version_deletion' => !$groupFolderInstalled && $this->config->getSystemValueBool('enable_version_deletion', true),
]
];
}