diff --git a/src/Security/Voter/UserOwnedVoter.php b/src/Security/Voter/UserOwnedVoter.php index 095d436..c1d02a4 100644 --- a/src/Security/Voter/UserOwnedVoter.php +++ b/src/Security/Voter/UserOwnedVoter.php @@ -20,11 +20,11 @@ class UserOwnedVoter extends Voter protected function supports(string $attribute, mixed $subject): bool { - if (!in_array($attribute, [self::OWNED])) { - return false; + if (in_array($attribute, [self::OWNED])) { + return true; } - return $subject instanceof UserOwnedInterface; + return false; } /**