Skip to content

Commit

Permalink
Fix Placeholder condition error when user is unauthorized
Browse files Browse the repository at this point in the history
  • Loading branch information
Nitro-N committed Sep 10, 2021
1 parent 5ccf203 commit ad80e63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DataSchema/Placeholder.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function __construct(Reader $annotationReader, Security $security, Securi
public function condition($condition, $alias, UserInterface $user = null)
{
if (!$user) {
$user = $this->security->getToken()->getUser();
$user = $this->security->getUser();
}

$userId = null;
Expand Down

0 comments on commit ad80e63

Please sign in to comment.