diff --git a/app/Livewire/Forms/TextAdsForm.php b/app/Livewire/Forms/TextAdsForm.php index 319efe7..862730c 100644 --- a/app/Livewire/Forms/TextAdsForm.php +++ b/app/Livewire/Forms/TextAdsForm.php @@ -49,9 +49,9 @@ class TextAdsForm extends Component 'name' => $color->labels(), 'value' => $color->value, ])->toArray(); - $this->canCreate = Auth::user()?->can('song-edit') ?? false; - $this->canEdit = Auth::user()?->can('song-edit') ?? false; - $this->canDelect = Auth::user()?->can('song-delete') ?? false; + $this->canCreate = Auth::user()?->can('text-ad-edit') ?? false; + $this->canEdit = Auth::user()?->can('text-ad-edit') ?? false; + $this->canDelect = Auth::user()?->can('text-ad-delete') ?? false; } public function openModal($id = null)