fix(outlet): salah permission untuk delete, malah kasih 'create outlet'
This commit is contained in:
parent
1580ed9be0
commit
d365c6c8f8
@ -86,7 +86,7 @@ public function updatedStatus(): void
|
|||||||
|
|
||||||
public function delete(Outlet $outlet): void
|
public function delete(Outlet $outlet): void
|
||||||
{
|
{
|
||||||
$this->canOrAbort('create outlet');
|
$this->canOrAbort('delete outlet');
|
||||||
|
|
||||||
$outlet->delete();
|
$outlet->delete();
|
||||||
$this->toast('Outlet berhasil dihapus.');
|
$this->toast('Outlet berhasil dihapus.');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user