From 38e0530e3f9bbff082fe1b23610ea3cc103ccb93 Mon Sep 17 00:00:00 2001 From: Kendrick Chan Date: Fri, 6 Apr 2018 17:42:47 +0800 Subject: [PATCH 1/2] Change view jo link in ticket to go to view all #77 --- templates/ticket/form.html.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/ticket/form.html.twig b/templates/ticket/form.html.twig index 71930e9b..1666c59d 100644 --- a/templates/ticket/form.html.twig +++ b/templates/ticket/form.html.twig @@ -114,7 +114,7 @@
- View Job Order + View Job Order
{% endif %} From 3642b2225edeea07185d6be640e95e4ca949933e Mon Sep 17 00:00:00 2001 From: Kendrick Chan Date: Fri, 6 Apr 2018 17:49:41 +0800 Subject: [PATCH 2/2] Fix permission bug in customer link showing #77 --- src/Controller/CustomerController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Controller/CustomerController.php b/src/Controller/CustomerController.php index 74519bdf..31e5040b 100644 --- a/src/Controller/CustomerController.php +++ b/src/Controller/CustomerController.php @@ -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;