Bug fix for access. Add API logging to CMB services to avoid breakage. #377
This commit is contained in:
parent
ac3c442ddc
commit
7bf9a7435c
4 changed files with 9 additions and 10 deletions
|
|
@ -227,3 +227,8 @@ services:
|
||||||
$redis_prov: "@App\\Service\\RedisClientProvider"
|
$redis_prov: "@App\\Service\\RedisClientProvider"
|
||||||
$loc_key: "%env(LOCATION_RIDER_ACTIVE_KEY)%"
|
$loc_key: "%env(LOCATION_RIDER_ACTIVE_KEY)%"
|
||||||
$status_key: "%env(STATUS_RIDER_KEY)%"
|
$status_key: "%env(STATUS_RIDER_KEY)%"
|
||||||
|
|
||||||
|
# API logging
|
||||||
|
App\EventSubscriber\LogSubscriber:
|
||||||
|
arguments:
|
||||||
|
$api_log_flag: "%env(API_LOGGING)%"
|
||||||
|
|
|
||||||
|
|
@ -122,10 +122,6 @@ main_menu:
|
||||||
acl: jo_all.list
|
acl: jo_all.list
|
||||||
label: View All
|
label: View All
|
||||||
parent: joborder
|
parent: joborder
|
||||||
- id: jo_autoassign
|
|
||||||
acl: jo_autoassign.test
|
|
||||||
label: Autoassign Test
|
|
||||||
parent: joborder
|
|
||||||
|
|
||||||
- id: support
|
- id: support
|
||||||
acl: support.menu
|
acl: support.menu
|
||||||
|
|
|
||||||
|
|
@ -181,15 +181,13 @@ class CustomerController extends Controller
|
||||||
|
|
||||||
public function getCustomerVehicles(Request $req, CustomerHandlerInterface $cust_handler)
|
public function getCustomerVehicles(Request $req, CustomerHandlerInterface $cust_handler)
|
||||||
{
|
{
|
||||||
/*
|
if (!((!$this->isGranted('jo_onestep.form')) ||
|
||||||
// TODO: fix
|
|
||||||
if ((!$this->isGranted('jo_onestep.form')) ||
|
|
||||||
(!$this->isGranted('jo_walkin.form')) ||
|
(!$this->isGranted('jo_walkin.form')) ||
|
||||||
(!$this->isGranted('jo_in.list'))) {
|
(!$this->isGranted('jo_in.list'))))
|
||||||
|
{
|
||||||
$exception = $this->createAccessDeniedException('No access.');
|
$exception = $this->createAccessDeniedException('No access.');
|
||||||
throw $exception;
|
throw $exception;
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
|
|
||||||
$results = $cust_handler->getCustomerVehicles($req);
|
$results = $cust_handler->getCustomerVehicles($req);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue