mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-app.git
synced 2026-05-13 19:14:53 +00:00
🛠️ **Remove unnecessary authorization logic from meetup edit view**
Simplified component by eliminating redundant `authorizeAccess` method.
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user