Skip to content

Commit

Permalink
Tmp fix for getRoles method in User
Browse files Browse the repository at this point in the history
  • Loading branch information
overgapo committed Apr 11, 2017
1 parent 2c305b2 commit 2d714d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Entity/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ public function getGoogleAccessToken()
*/
public function getRoles()
{
return $this->roles;
return $this->roles ?? [self::ROLE_USER];
}

/**
Expand Down

0 comments on commit 2d714d4

Please sign in to comment.