Skip to content

Commit

Permalink
fix policy
Browse files Browse the repository at this point in the history
  • Loading branch information
Thiritin committed Jul 22, 2024
1 parent 1a78827 commit 752f0db
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/Http/Controllers/BadgeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 752f0db

Please sign in to comment.