Add owner to access list
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
d84df15590
commit
7dcc98eb20
|
@ -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
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
|
@ -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,
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in New Issue