|
@@ -68,7 +68,7 @@ |
|
|
block discarded – undo |
|
68
|
68
|
|
|
69
|
69
|
/** @var BeforeTemplateRenderedEvent $event */ |
|
70
|
70
|
if ($event->getResponse()->getRenderAs() === TemplateResponse::RENDER_AS_USER) { |
|
71
|
|
- $this->initialState->provideLazyInitialState('shortcutsDisabled', function () { |
|
|
71
|
+ $this->initialState->provideLazyInitialState('shortcutsDisabled', function() { |
|
72
|
72
|
if ($this->userSession->getUser()) { |
|
73
|
73
|
$uid = $this->userSession->getUser()->getUID(); |
|
74
|
74
|
return $this->config->getUserValue($uid, Application::APP_ID, 'shortcuts_disabled', 'no') === 'yes'; |
Please login to merge, or discard this patch.