X Tutup
Skip to content

Commit 0939162

Browse files
committed
Add capabilities for file locking
1 parent 9fd1660 commit 0939162

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

apps/files/lib/Capabilities.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,9 @@ public function getCapabilities() {
6161
'privateLinksDetailsParam' => true,
6262
'bigfilechunking' => true,
6363
'blacklisted_files' => $this->config->getSystemValue('blacklisted_files', ['.htaccess']),
64-
'favorites' => true
64+
'favorites' => true,
65+
'file_locking_support' => true,
66+
'file_locking_enable_file_action' => (boolean)($this->config->getAppValue('files', 'enable_lock_file_action', 'no') === 'yes'),
6567
],
6668
];
6769
}

changelog/10.5.0_2020-06-23/37620

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Change: Add capabilities for file locking
2+
3+
- file_locking_support -> general capability
4+
- file_locking_enable_file_action - > depending on the setting
5+
6+
7+
https://github.com/owncloud/core/issues/37620
8+
https://github.com/owncloud/core/pull/37747

0 commit comments

Comments
 (0)
X Tutup