This commit is contained in:
Matthew Toseland 2026-06-13 05:41:57 +02:00 committed by GitHub
commit 8bccfb27cb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -447,9 +447,10 @@ class FileEventsListener implements IEventListener {
$owner = null;
}
// If no owner, extract it from the path.
// e.g. /user/files/foobar.txt
if (!$owner) {
// If no owner, extract it from the path, e.g. /user/files/foobar.txt
// Also try this if they are the same, because it might be a group folder that the user does not have access to
// E.g. where filling in a form with a spreadsheet attached
if (!$owner || $owner == $user) {
$parts = explode('/', $node->getPath(), 4);
if (count($parts) === 4) {
$owner = $parts[1];