Skip to content

Commit

Permalink
#232 - fix
Browse files Browse the repository at this point in the history
  • Loading branch information
EwelinaSkrzypacz committed Oct 26, 2023
1 parent a743724 commit c4f01e4
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,12 +143,6 @@ public function destroy(BenefitsReport $benefitsReport): RedirectResponse
{
$this->authorize("manageBenefits");

if ($benefitsReport->id === 1) {
return redirect()
->back()
->with("error", __("Nie możesz usunąć bazowego raportu"));
}

$benefitsReport->delete();

return redirect()
Expand Down

0 comments on commit c4f01e4

Please sign in to comment.