added new permission to separate time and money budget (#3352)
This commit is contained in:
@@ -226,6 +226,7 @@ class ProjectController extends BaseApiController
|
||||
'timezone' => $this->getDateTimeFactory()->getTimezone()->getName(),
|
||||
'date_format' => self::DATE_FORMAT,
|
||||
'include_budget' => $this->isGranted('budget', $project),
|
||||
'include_time' => $this->isGranted('time', $project),
|
||||
]);
|
||||
|
||||
$form->submit($request->request->all());
|
||||
@@ -292,6 +293,7 @@ class ProjectController extends BaseApiController
|
||||
'timezone' => $this->getDateTimeFactory()->getTimezone()->getName(),
|
||||
'date_format' => self::DATE_FORMAT,
|
||||
'include_budget' => $this->isGranted('budget', $project),
|
||||
'include_time' => $this->isGranted('time', $project),
|
||||
]);
|
||||
|
||||
$form->setData($project);
|
||||
|
||||
Reference in New Issue
Block a user