Add owner to access list

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
Roeland Jago Douma 2016-09-09 12:57:01 +02:00
parent d84df15590
commit 7dcc98eb20
No known key found for this signature in database
GPG Key ID: F941078878347C0C
3 changed files with 6 additions and 2 deletions

View File

@ -78,3 +78,7 @@ Options -Indexes
<IfModule pagespeed_module> <IfModule pagespeed_module>
ModPagespeed Off ModPagespeed Off
</IfModule> </IfModule>
#### DO NOT CHANGE ANYTHING ABOVE THIS LINE ####
ErrorDocument 403 /core/templates/403.php
ErrorDocument 404 /core/templates/404.php

View File

@ -1221,7 +1221,7 @@ class Manager implements IManager {
$path = $path->getParent(); $path = $path->getParent();
} }
$users = []; $users = [$owner => 'null'];
$public = false; $public = false;
$remote = false; $remote = false;
foreach ($shares as $share) { foreach ($shares as $share) {

View File

@ -2811,7 +2811,7 @@ class ManagerTest extends \Test\TestCase {
->willReturn($userFolder); ->willReturn($userFolder);
$expected = [ $expected = [
'users' => ['user1', 'user2'], 'users' => ['owner', 'user1', 'user2'],
'public' => true, 'public' => true,
'remote' => true, 'remote' => true,
]; ];