mirror of
https://github.com/nextcloud/server.git
synced 2026-07-16 23:12:04 -04:00
Fix: NotFoundException for anonymous users
Signed-off-by: Kostiantyn Miakshyn <molodchick@gmail.com>
This commit is contained in:
parent
c4467ba1e4
commit
3012a87bac
1 changed files with 5 additions and 1 deletions
|
|
@ -359,7 +359,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