Skip to content

Commit

Permalink
fixed empty roles issue
Browse files Browse the repository at this point in the history
  • Loading branch information
viniychuk committed May 21, 2016
1 parent 19d4e39 commit 4259548
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Entity/AdminUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ public function isEnabled()

public function getRoles()
{
$roles = [];
foreach ($this->getRights() as $right) {
$roles[] = $right->getId();
}
Expand Down

0 comments on commit 4259548

Please sign in to comment.