PHRAS-1545 fix order manager view (#4061)

* remove button on mail deny

display only order element that the order manager has right

fix string not translated

* do not send deny email

* update
This commit is contained in:
Aina Sitraka
2022-06-21 11:23:30 +03:00
committed by GitHub
parent eac4ab3831
commit ccfcf24a3d
13 changed files with 28 additions and 24 deletions

View File

@@ -144,9 +144,11 @@ class ProdOrderController extends BaseOrderController
public function displayOneOrder($order_id)
{
$order = $this->findOr404($order_id);
$grantedBaseIds = array_keys($this->getAclForUser()->get_granted_base([\ACL::ORDER_MASTER]));
return $this->render('prod/orders/order_item.html.twig', [
'order' => $order,
'order' => $order,
'grantedBaseIds' => $grantedBaseIds
]);
}