Skip to content

Commit

Permalink
#261 The security token must be authenticated no matter of the user's…
Browse files Browse the repository at this point in the history
… roles
  • Loading branch information
chalasr authored Oct 25, 2016
1 parent 5cd0ba1 commit b745c15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Security/Authentication/Token/JWTUserToken.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function __construct(array $roles = [], UserInterface $user = null, $rawT
}

$this->setRawToken($rawToken);
$this->setAuthenticated(count($roles) > 0);
$this->setAuthenticated(true);

$this->providerKey = $providerKey;
}
Expand Down

0 comments on commit b745c15

Please sign in to comment.