Skip to content

Commit 2053724

Browse files
committed
fix(capabilities): provide via initial state whether the calendar app is enabled
Signed-off-by: Maksim Sukharev <[email protected]>
1 parent 490b96a commit 2053724

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/TInitialState.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,11 @@ protected function publishInitialStateForUser(IUser $user, IRootFolder $rootFold
9393
!$this->talkConfig->isNotAllowedToCreateConversations($user)
9494
);
9595

96+
$this->initialState->provideInitialState(
97+
'calendar_enabled',
98+
$appManager->isEnabledForUser('calendar', $user)
99+
);
100+
96101
$this->initialState->provideInitialState(
97102
'circles_enabled',
98103
$appManager->isEnabledForUser('circles', $user)

0 commit comments

Comments
 (0)