mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Enable version features again with S3 versioning
Signed-off-by: Benjamin Somers <bsomers@resel.fr>
This commit is contained in:
parent
aedb4bef1e
commit
75e04614c1
1 changed files with 3 additions and 3 deletions
|
|
@ -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),
|
||||
]
|
||||
];
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue