Increase leniency of USER_OWNED voter support

This commit is contained in:
2025-01-24 11:53:01 +01:00
parent 7690ac441c
commit 04c18983d4
+3 -3
View File
@@ -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;
}
/**