Browse Source

Add owner to access list

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
tags/v12.0.0beta1
Roeland Jago Douma 7 years ago
parent
commit
7dcc98eb20
No account linked to committer's email address
3 changed files with 6 additions and 2 deletions
  1. 4
    0
      .htaccess
  2. 1
    1
      lib/private/Share20/Manager.php
  3. 1
    1
      tests/lib/Share20/ManagerTest.php

+ 4
- 0
.htaccess View File

@@ -78,3 +78,7 @@ Options -Indexes
<IfModule pagespeed_module>
ModPagespeed Off
</IfModule>
#### DO NOT CHANGE ANYTHING ABOVE THIS LINE ####

ErrorDocument 403 /core/templates/403.php
ErrorDocument 404 /core/templates/404.php

+ 1
- 1
lib/private/Share20/Manager.php View File

@@ -1221,7 +1221,7 @@ class Manager implements IManager {
$path = $path->getParent();
}

$users = [];
$users = [$owner => 'null'];
$public = false;
$remote = false;
foreach ($shares as $share) {

+ 1
- 1
tests/lib/Share20/ManagerTest.php View File

@@ -2811,7 +2811,7 @@ class ManagerTest extends \Test\TestCase {
->willReturn($userFolder);

$expected = [
'users' => ['user1', 'user2'],
'users' => ['owner', 'user1', 'user2'],
'public' => true,
'remote' => true,
];

Loading…
Cancel
Save