Skip to content

Commit

Permalink
Merge pull request #39147 from nextcloud/backport/38794/stable27
Browse files Browse the repository at this point in the history
[stable27] Enable version features again with S3 versioning
  • Loading branch information
artonge authored Jul 10, 2023
2 parents 7e9bd4f + f287866 commit 0a876e3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/files_versions/lib/Capabilities.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@ public function __construct(
* @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),
]
];
}
Expand Down

0 comments on commit 0a876e3

Please sign in to comment.