Fix permission bug in customer link showing #77
This commit is contained in:
parent
38e0530e3f
commit
3642b2225e
1 changed files with 2 additions and 2 deletions
|
|
@ -128,9 +128,9 @@ class CustomerController extends BaseController
|
|||
];
|
||||
|
||||
// add crud urls
|
||||
if ($this->isGranted('user.update'))
|
||||
if ($this->isGranted('customer.update'))
|
||||
$row['meta']['update_url'] = $this->generateUrl('customer_update', ['id' => $row['id']]);
|
||||
if ($this->isGranted('user.delete'))
|
||||
if ($this->isGranted('customer.delete'))
|
||||
$row['meta']['delete_url'] = $this->generateUrl('customer_delete', ['id' => $row['id']]);
|
||||
|
||||
$rows[] = $row;
|
||||
|
|
|
|||
Loading…
Reference in a new issue