🛠️ **Remove unnecessary authorization logic from meetup edit view**

Simplified component by eliminating redundant `authorizeAccess` method.
This commit is contained in:
HolgerHatGarKeineNode
2026-05-05 09:59:40 +02:00
parent e7d1a949e8
commit 8b3005c63b
@@ -83,13 +83,6 @@ class extends Component {
\Flux\Flux::modal('add-city')->close(); \Flux\Flux::modal('add-city')->close();
} }
protected function authorizeAccess(): void
{
if (!is_null($this->meetup->created_by) && auth()->id() !== $this->meetup->created_by) {
abort(403);
}
}
/** /**
* Whitelist the keys allowed inside github_data and coerce types so a * Whitelist the keys allowed inside github_data and coerce types so a
* tampered payload cannot smuggle arbitrary keys into the stored JSON. * tampered payload cannot smuggle arbitrary keys into the stored JSON.
@@ -121,8 +114,6 @@ class extends Component {
public function mount(): void public function mount(): void
{ {
$this->authorizeAccess();
$this->meetup->load('media'); $this->meetup->load('media');
// Basic Information // Basic Information