mirror of
https://github.com/nextcloud/server.git
synced 2026-06-14 19:20:35 -04:00
Merge pull request #14751 from nextcloud/backport/14747/stable15
[stable15] Fix getting the access list on external storage
This commit is contained in:
commit
fa779fe75c
1 changed files with 7 additions and 1 deletions
|
|
@ -1408,7 +1408,13 @@ class Manager implements IManager {
|
|||
* @return array
|
||||
*/
|
||||
public function getAccessList(\OCP\Files\Node $path, $recursive = true, $currentAccess = false) {
|
||||
$owner = $path->getOwner()->getUID();
|
||||
$owner = $path->getOwner();
|
||||
|
||||
if ($owner === null) {
|
||||
return [];
|
||||
}
|
||||
|
||||
$owner = $owner->getUID();
|
||||
|
||||
if ($currentAccess) {
|
||||
$al = ['users' => [], 'remote' => [], 'public' => false];
|
||||
|
|
|
|||
Loading…
Reference in a new issue