diff options
author | Vincent Petry <pvince81@owncloud.com> | 2015-12-08 11:32:18 +0100 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2015-12-09 15:58:39 +0100 |
commit | 2466972efd8be02bb5efbb46057671c916fe7401 (patch) | |
tree | 6dba944975bee440c71c4f6e247c09a856c0dd66 /apps/files | |
parent | 873e932f59c3fa3d2ab8bca083abea5ba44afcee (diff) | |
download | nextcloud-server-2466972efd8be02bb5efbb46057671c916fe7401.tar.gz nextcloud-server-2466972efd8be02bb5efbb46057671c916fe7401.zip |
Compute share permissions in the view
The share permissions are now computed in the View/FileInfo instead of
storing them directly/permanently on the storage
Diffstat (limited to 'apps/files')
-rw-r--r-- | apps/files/tests/controller/apicontrollertest.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/apps/files/tests/controller/apicontrollertest.php b/apps/files/tests/controller/apicontrollertest.php index 35d00af75ba..786ca9e4aca 100644 --- a/apps/files/tests/controller/apicontrollertest.php +++ b/apps/files/tests/controller/apicontrollertest.php @@ -93,6 +93,7 @@ class ApiControllerTest extends TestCase { [ 'mtime' => 55, 'mimetype' => 'application/pdf', + 'permissions' => 31, 'size' => 1234, 'etag' => 'MyEtag', ], @@ -114,7 +115,7 @@ class ApiControllerTest extends TestCase { 'mtime' => 55000, 'icon' => \OCA\Files\Helper::determineIcon($fileInfo), 'name' => 'root.txt', - 'permissions' => null, + 'permissions' => 31, 'mimetype' => 'application/pdf', 'size' => 1234, 'type' => 'file', @@ -142,6 +143,7 @@ class ApiControllerTest extends TestCase { [ 'mtime' => 55, 'mimetype' => 'application/pdf', + 'permissions' => 31, 'size' => 1234, 'etag' => 'MyEtag', ], @@ -158,6 +160,7 @@ class ApiControllerTest extends TestCase { [ 'mtime' => 999, 'mimetype' => 'application/binary', + 'permissions' => 31, 'size' => 9876, 'etag' => 'SubEtag', ], @@ -179,7 +182,7 @@ class ApiControllerTest extends TestCase { 'mtime' => 55000, 'icon' => \OCA\Files\Helper::determineIcon($fileInfo1), 'name' => 'root.txt', - 'permissions' => null, + 'permissions' => 31, 'mimetype' => 'application/pdf', 'size' => 1234, 'type' => 'file', @@ -198,7 +201,7 @@ class ApiControllerTest extends TestCase { 'mtime' => 999000, 'icon' => \OCA\Files\Helper::determineIcon($fileInfo2), 'name' => 'root.txt', - 'permissions' => null, + 'permissions' => 31, 'mimetype' => 'application/binary', 'size' => 9876, 'type' => 'file', |