diff options
author | icewind1991 <robin@icewind.nl> | 2014-06-06 11:57:43 +0200 |
---|---|---|
committer | icewind1991 <robin@icewind.nl> | 2014-06-06 11:57:43 +0200 |
commit | c47d4ebbac7885ad91cf56355bd6aa09318ff8e8 (patch) | |
tree | 22a78530feb3c582cf5624b4089bd79c8e9b2afd /apps/files_sharing/tests/permissions.php | |
parent | 0661d737e6f529b7d921ada441453f2b314c3445 (diff) | |
parent | 46f70aabfd399e1bc5517b2192ac2489189f9d94 (diff) | |
download | nextcloud-server-c47d4ebbac7885ad91cf56355bd6aa09318ff8e8.tar.gz nextcloud-server-c47d4ebbac7885ad91cf56355bd6aa09318ff8e8.zip |
Merge pull request #8666 from owncloud/mount-remove
Support for (re)moving mountpoints
Diffstat (limited to 'apps/files_sharing/tests/permissions.php')
-rw-r--r-- | apps/files_sharing/tests/permissions.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/files_sharing/tests/permissions.php b/apps/files_sharing/tests/permissions.php index 5ac251b0527..0a222b08512 100644 --- a/apps/files_sharing/tests/permissions.php +++ b/apps/files_sharing/tests/permissions.php @@ -111,5 +111,10 @@ class Test_Files_Sharing_Permissions extends Test_Files_Sharing_Base { $this->assertEquals(7, $contents[0]['permissions']); $this->assertEquals('textfile1.txt', $contents[1]['name']); $this->assertEquals(7, $contents[1]['permissions']); + + // the share mount point should always have delete permissions to allow the user + // to unmount it + $restrictedShare = $this->secondView->getFileInfo('files/shareddirrestricted'); + $this->assertEquals(7 | \OCP\PERMISSION_DELETE, $restrictedShare['permissions']); } } |