mirror of
https://github.com/nextcloud/spreed.git
synced 2025-12-18 05:20:50 +01:00
Merge pull request #16486 from nextcloud/bugfix/16477/get-accesslist
fix(filesintegration): Correctly handle optional values for file inte…
This commit is contained in:
commit
485193ca5e
1 changed files with 2 additions and 1 deletions
|
|
@ -45,6 +45,7 @@ class Util {
|
|||
|
||||
$node = array_shift($nodes);
|
||||
$accessList = $this->shareManager->getAccessList($node);
|
||||
$accessList['users'] ??= [];
|
||||
if (!$node->getStorage()->instanceOfStorage(SharedStorage::class)) {
|
||||
// The file is not a shared file,
|
||||
// let's check the accesslist for mount points of groupfolders and external storages
|
||||
|
|
@ -76,7 +77,7 @@ class Util {
|
|||
|
||||
$node = array_shift($nodes);
|
||||
$accessList = $this->shareManager->getAccessList($node, false);
|
||||
$this->publicAccessLists[$fileId] = $accessList['public'];
|
||||
$this->publicAccessLists[$fileId] = $accessList['public'] ?? false;
|
||||
}
|
||||
return $this->publicAccessLists[$fileId] === true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue