diff --git a/app/Http/Controllers/BadgeController.php b/app/Http/Controllers/BadgeController.php index 2e99571..4e4fb00 100644 --- a/app/Http/Controllers/BadgeController.php +++ b/app/Http/Controllers/BadgeController.php @@ -120,6 +120,7 @@ public function store(BadgeCreateRequest $request) public function edit(Badge $badge, Request $request) { + Gate::authorize('update', $badge); return Inertia::render('Badges/BadgesEdit', [ 'canEdit' => $request->user()->can('update', $badge), 'canDelete' => $request->user()->can('delete', $badge),