optimizations (#2904)
* calc once, then re-use * prevent invalid theme switch * allow to turn off weekly-quick-entries by permissions * remove 00:00 from date-times that likely do not need a time * fix datepicker out of window
This commit is contained in:
@@ -55,7 +55,7 @@ final class MenuSubscriber implements EventSubscriberInterface
|
||||
$timesheets->setChildRoutes(['timesheet_export', 'timesheet_edit', 'timesheet_create', 'timesheet_multi_update']);
|
||||
$menu->addItem($timesheets);
|
||||
|
||||
if ($auth->isGranted('edit_own_timesheet')) {
|
||||
if ($auth->isGranted('weekly_own_timesheet') && $auth->isGranted('edit_own_timesheet')) {
|
||||
$mode = $this->trackingModeService->getActiveMode();
|
||||
if ($mode->canEditDuration() || $mode->canEditEnd()) {
|
||||
$menu->addItem(
|
||||
|
||||
Reference in New Issue
Block a user