Add files drop capability for clients

This commit is contained in:
Roeland Jago Douma 2016-08-13 14:00:44 +02:00
parent b6f0a06725
commit f1d4341dd7
No known key found for this signature in database
GPG Key ID: 1E152838F164D13B
2 changed files with 3 additions and 0 deletions

View File

@ -69,6 +69,7 @@ class Capabilities implements ICapability {
$public['send_mail'] = $this->config->getAppValue('core', 'shareapi_allow_public_notification', 'no') === 'yes';
$public['upload'] = $this->config->getAppValue('core', 'shareapi_allow_public_upload', 'yes') === 'yes';
$public['upload_files_drop'] = $public['upload'];
}
$res["public"] = $public;

View File

@ -232,6 +232,7 @@ class CapabilitiesTest extends \Test\TestCase {
];
$result = $this->getResults($map);
$this->assertTrue($result['public']['upload']);
$this->assertTrue($result['public']['upload_files_drop']);
}
public function testLinkNoPublicUpload() {
@ -242,6 +243,7 @@ class CapabilitiesTest extends \Test\TestCase {
];
$result = $this->getResults($map);
$this->assertFalse($result['public']['upload']);
$this->assertFalse($result['public']['upload_files_drop']);
}
public function testNoGroupSharing() {