fix: several bug fixes as found in logs

This commit is contained in:
Björn Fromme
2024-10-14 15:01:17 +02:00
parent 760b3673fc
commit 5976668cb7
4 changed files with 13 additions and 3 deletions
+5
View File
@@ -36,6 +36,11 @@ class AvailabilityVoter extends Voter
/** @var User $user */
$user = $this->security->getUser();
if (null === $user) {
return false;
}
$teamer = $user->getTeamer();
return null === $availability->getOwner() || $teamer === $availability->getOwner();