Skip to content

Commit

Permalink
Fix teamDataCheck
Browse files Browse the repository at this point in the history
  • Loading branch information
melegiul committed Jan 15, 2024
1 parent 162d6fb commit 009635c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Service/SecurityService.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,9 @@ public function teamDataCheck($data, $team): bool
}

//Sicherheitsfunktion, dass nur eigene Daten bearbeitet werden können
if ($team === $data->getTeam()) {
if ($team !== $data->getTeam()) {
$this->logAccessDenied($team);
return false;
}

return true;
Expand Down

0 comments on commit 009635c

Please sign in to comment.