Browse Source

Fix expire date capability for federated shares

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
tags/v22.0.0beta1
Vincent Petry 3 years ago
parent
commit
b0aaafe259
No account linked to committer's email address
1 changed files with 4 additions and 1 deletions
  1. 4
    1
      apps/files_sharing/lib/Capabilities.php

+ 4
- 1
apps/files_sharing/lib/Capabilities.php View File

@@ -111,7 +111,10 @@ class Capabilities implements ICapability {
$res['federation'] = [
'outgoing' => $this->config->getAppValue('files_sharing', 'outgoing_server2server_share_enabled', 'yes') === 'yes',
'incoming' => $this->config->getAppValue('files_sharing', 'incoming_server2server_share_enabled', 'yes') === 'yes',
'expire_date' => ['enabled' => true]
// old bogus one, expire_date was not working before, keeping for compatibility
'expire_date' => ['enabled' => true],
// the real deal, signifies that expiration date can be set on federated shares
'expire_date_supported' => ['enabled' => true],
];

// Sharee searches

Loading…
Cancel
Save