202508031839
TextAds 權限設錯
This commit is contained in:
parent
df8d7ce4ac
commit
efa41bb584
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user