Skip to content

Commit 628e261

Browse files
authored
userSession does not contain null
Signed-off-by: Git'Fellow <[email protected]>
1 parent 24e136a commit 628e261

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()?->getUID();
342+
$user = $this->userSession->getUser()?->getUID();
343343
if ($user) {
344344
return $this->rootFolder
345345
->getUserFolder($user)

0 commit comments

Comments
 (0)