Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
  • Loading branch information
solracsf authored Nov 27, 2023
1 parent ba244b3 commit d0e84b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/files_versions/lib/Listener/FileEventsListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ public function pre_renameOrCopy_hook(Node $source, Node $target): void {
* If no user is connected, try to use the node's owner.
*/
private function getPathForNode(Node $node): ?string {
$user = $this->userSession?->getUser();
$user = $this->userSession?->getUser()?->getUID();
if ($user) {
return $this->rootFolder
->getUserFolder($user)
Expand Down

0 comments on commit d0e84b5

Please sign in to comment.