Browse Source

Add files drop capability for clients

tags/v11.0RC2
Roeland Jago Douma 8 years ago
parent
commit
9daf41e05a
No account linked to committer's email address

+ 1
- 0
apps/files_sharing/lib/Capabilities.php 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;


+ 2
- 0
apps/files_sharing/tests/CapabilitiesTest.php 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() {

Loading…
Cancel
Save