202508031839

TextAds 權限設錯
This commit is contained in:
allen.yan 2025-08-03 18:39:45 +08:00
parent df8d7ce4ac
commit efa41bb584

View File

@ -49,9 +49,9 @@ class TextAdsForm extends Component
'name' => $color->labels(), 'name' => $color->labels(),
'value' => $color->value, 'value' => $color->value,
])->toArray(); ])->toArray();
$this->canCreate = Auth::user()?->can('song-edit') ?? false; $this->canCreate = Auth::user()?->can('text-ad-edit') ?? false;
$this->canEdit = Auth::user()?->can('song-edit') ?? false; $this->canEdit = Auth::user()?->can('text-ad-edit') ?? false;
$this->canDelect = Auth::user()?->can('song-delete') ?? false; $this->canDelect = Auth::user()?->can('text-ad-delete') ?? false;
} }
public function openModal($id = null) public function openModal($id = null)