Skip to content

Commit

Permalink
Merge pull request #855 from nextcloud/files_drop_capability
Browse files Browse the repository at this point in the history
Add files drop capability for clients
  • Loading branch information
rullzer authored Aug 15, 2016
2 parents f3124b5 + 9daf41e commit 396678c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions apps/files_sharing/lib/Capabilities.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ public function getCapabilities() {

$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;

Expand Down
2 changes: 2 additions & 0 deletions apps/files_sharing/tests/CapabilitiesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ public function testLinkPublicUpload() {
];
$result = $this->getResults($map);
$this->assertTrue($result['public']['upload']);
$this->assertTrue($result['public']['upload_files_drop']);
}

public function testLinkNoPublicUpload() {
Expand All @@ -242,6 +243,7 @@ public function testLinkNoPublicUpload() {
];
$result = $this->getResults($map);
$this->assertFalse($result['public']['upload']);
$this->assertFalse($result['public']['upload_files_drop']);
}

public function testNoGroupSharing() {
Expand Down

0 comments on commit 396678c

Please sign in to comment.