Skip to content

Commit

Permalink
Merge pull request #15 from adlogix/fix/addUser
Browse files Browse the repository at this point in the history
fix multiple user entries during addUser persistance
  • Loading branch information
richardfullmer authored Oct 4, 2016
2 parents b93d48c + a5ecb34 commit 4678f43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Feature.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public function serialize()
*/
public function addUser(RolloutUserInterface $user)
{
if (!in_array($user, $this->users)) {
if (!in_array($user->getRolloutIdentifier(), $this->users)) {
$this->users[] = $user->getRolloutIdentifier();
}
}
Expand Down

0 comments on commit 4678f43

Please sign in to comment.