Skip to content

Commit

Permalink
Fix the unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
leofeyer committed Jul 16, 2020
1 parent c1cca71 commit f3cbd68
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -122,7 +122,7 @@ public function generateArticleForPage(DataContainer $dc): void
$user = $this->security->getUser();

// Return if there is no active record (override all)
if (!$dc->activeRecord || null === $request || !$user instanceof BackendUser || !$request->hasSession()) {
if (!$dc->activeRecord || null === $request || !$request->hasSession() || !$user instanceof BackendUser) {
return;
}

Expand Down

0 comments on commit f3cbd68

Please sign in to comment.