Increase leniency of USER_OWNED voter support
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user