mirror of
https://github.com/nextcloud/server.git
synced 2026-03-13 14:19:06 -04:00
Merge pull request #50958 from nextcloud/bugfix/fix-not-found-exception-for-anonymous-users
Fix: NotFoundException for anonymous users
This commit is contained in:
commit
b9d1dd2dd9
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