Skip to content

Commit

Permalink
ignore file with no owner
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtificialOwl committed Mar 8, 2021
1 parent 1264736 commit 1f26e25
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/Listeners/FileCreated.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ public function handle(Event $event): void {

$node = $event->getNode();
$user = $this->userSession->getUser();
if ($user === null) {
return;
}

try {
$this->fullTextSearchManager->createIndex(
Expand Down

0 comments on commit 1f26e25

Please sign in to comment.