added new permission to separate time and money budget (#3352)
This commit is contained in:
@@ -78,7 +78,7 @@ class CustomerSubscriber extends AbstractActionsSubscriber
|
||||
$event->addDelete($this->path('admin_customer_delete', ['id' => $customer->getId()]));
|
||||
}
|
||||
|
||||
if ($this->isGranted('view_reporting') && $this->isGranted('budget_project')) {
|
||||
if ($this->isGranted('view_reporting') && $this->isGranted('budget_any', 'project')) {
|
||||
$event->addAction('report_project_view', ['url' => $this->path('report_project_view', ['customer' => $customer->getId()]), 'icon' => 'reporting', 'translation_domain' => 'reporting']);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user