Skip to content

Commit

Permalink
Merge pull request #3 from fabpl/edit-team-gate-delete
Browse files Browse the repository at this point in the history
Check gate on delete team
  • Loading branch information
stephenjude committed Mar 9, 2024
2 parents bbca6c2 + 0308e13 commit afe1225
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion stubs/resources/views/filament/pages/edit-team.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,9 @@

@livewire(Laravel\Jetstream\Http\Livewire\TeamMemberManager::class, compact('team'))

@livewire(Laravel\Jetstream\Http\Livewire\DeleteTeamForm::class, compact('team'))
@if (Gate::check('delete', $team) && ! $team->personal_team)
<x-section-border/>

@livewire(Laravel\Jetstream\Http\Livewire\DeleteTeamForm::class, compact('team'))
@endif
</x-filament-panels::page>

0 comments on commit afe1225

Please sign in to comment.