]> source.dussan.org Git - nextcloud-server.git/commitdiff
Add files drop capability for clients 887/head
authorRoeland Jago Douma <roeland@famdouma.nl>
Sat, 13 Aug 2016 12:00:44 +0000 (14:00 +0200)
committerRoeland Jago Douma <roeland@famdouma.nl>
Mon, 15 Aug 2016 19:29:03 +0000 (21:29 +0200)
apps/files_sharing/lib/Capabilities.php
apps/files_sharing/tests/CapabilitiesTest.php

index 8dde2dafb0d985a75e60c8d50ca5a6e28c27db70..9da6dbbc99574af0304b6086bfd1a84efc1dc37c 100644 (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;
 
index 0c4a68b997c593ca97cccc8d65aedddf17c21de9..254f7cdaa7cae7e098a7a2fac3af3728a1613735 100644 (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() {