mirror of
https://github.com/nextcloud/server.git
synced 2026-06-17 20:50:05 -04:00
Fix: NotFoundException for anonymous users
Signed-off-by: Kostiantyn Miakshyn <molodchick@gmail.com>
This commit is contained in:
parent
77c9238892
commit
03605133d8
1 changed files with 5 additions and 1 deletions
|
|
@ -382,7 +382,11 @@ class FileEventsListener implements IEventListener {
|
|||
}
|
||||
}
|
||||
|
||||
$owner = $node->getOwner()?->getUid();
|
||||
try {
|
||||
$owner = $node->getOwner()?->getUid();
|
||||
} catch (\OCP\Files\NotFoundException) {
|
||||
$owner = null;
|
||||
}
|
||||
|
||||
// If no owner, extract it from the path.
|
||||
// e.g. /user/files/foobar.txt
|
||||
|
|
|
|||
Loading…
Reference in a new issue