Skip to content

Commit d0e84b5

Browse files
authored
Fix
Signed-off-by: Git'Fellow <[email protected]>
1 parent ba244b3 commit d0e84b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/files_versions/lib/Listener/FileEventsListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ public function pre_renameOrCopy_hook(Node $source, Node $target): void {
339339
* If no user is connected, try to use the node's owner.
340340
*/
341341
private function getPathForNode(Node $node): ?string {
342-
$user = $this->userSession?->getUser();
342+
$user = $this->userSession?->getUser()?->getUID();
343343
if ($user) {
344344
return $this->rootFolder
345345
->getUserFolder($user)

0 commit comments

Comments
 (0)