Skip to content

Commit

Permalink
Merge pull request #46 from boite/develop
Browse files Browse the repository at this point in the history
fix: don't hint AdvancedUserInterface
  • Loading branch information
joostfaassen authored Feb 23, 2020
2 parents 9670e2a + 439742c commit 96460b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Controller/SpaceController.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
use Symfony\Component\HttpFoundation\Response;
use Radvance\Constraint\CodeConstraint;
use Symfony\Component\Validator\Constraints as Assert;
use Symfony\Component\Security\Core\User\AdvancedUserInterface;
use Symfony\Component\Security\Core\User\UserInterface;
use Symfony\Component\Form\FormError;

class SpaceController
{
protected function isAccountOwner(AdvancedUserInterface $user, $accountName)
protected function isAccountOwner(UserInterface $user, $accountName)
{
$authorized = $user->getUsername() == $accountName;
if (!$authorized && method_exists($user, 'getAccounts')) {
Expand Down

0 comments on commit 96460b9

Please sign in to comment.