can:update,meetupEvent

This commit is contained in:
HolgerHatGarKeineNode
2023-02-07 16:00:53 +01:00
parent a5cbc10016
commit f757a1cfa8

View File

@@ -44,6 +44,10 @@ class MeetupEventForm extends Component
->addHours(17), ->addHours(17),
] ]
); );
} elseif (!auth()
->user()
->can('update', $this->meetupEvent)) {
abort(403);
} }
} }