abort 403

This commit is contained in:
HolgerHatGarKeineNode
2023-02-16 20:33:28 +01:00
parent ec482eae48
commit 70a220cf91

View File

@@ -44,6 +44,8 @@ class OrangePillForm extends Component
'date' => now(), 'date' => now(),
'amount' => 1, 'amount' => 1,
]); ]);
} elseif ($this->orangePill->user_id !== auth()->id()) {
abort(403);
} }
} }