@@ -161,7 +161,7 @@ class CustomerController extends AbstractController
|
||||
protected function getToolbarForm(CustomerQuery $query)
|
||||
{
|
||||
return $this->createForm(CustomerToolbarForm::class, $query, [
|
||||
'action' => $this->generateUrl('admin_customer_paginated', [
|
||||
'action' => $this->generateUrl('admin_customer', [
|
||||
'page' => $query->getPage(),
|
||||
]),
|
||||
'method' => 'GET',
|
||||
|
||||
@@ -165,7 +165,7 @@ class ProjectController extends AbstractController
|
||||
protected function getToolbarForm(ProjectQuery $query)
|
||||
{
|
||||
return $this->createForm(ProjectToolbarForm::class, $query, [
|
||||
'action' => $this->generateUrl('admin_project_paginated', [
|
||||
'action' => $this->generateUrl('admin_project', [
|
||||
'page' => $query->getPage(),
|
||||
]),
|
||||
'method' => 'GET',
|
||||
|
||||
@@ -104,7 +104,7 @@ class UserController extends AbstractController
|
||||
protected function getToolbarForm(UserQuery $query)
|
||||
{
|
||||
return $this->createForm(UserToolbarForm::class, $query, [
|
||||
'action' => $this->generateUrl('admin_user_paginated', [
|
||||
'action' => $this->generateUrl('admin_user', [
|
||||
'page' => $query->getPage(),
|
||||
]),
|
||||
'method' => 'GET',
|
||||
|
||||
@@ -54,6 +54,10 @@ class NavbarShowUserSubscriber implements EventSubscriberInterface
|
||||
*/
|
||||
public function onShowUser(ShowUserEvent $event)
|
||||
{
|
||||
if ($this->storage->getToken() === null) {
|
||||
return;
|
||||
}
|
||||
|
||||
/* @var $myUser User */
|
||||
$myUser = $this->storage->getToken()->getUser();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user