mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 04:29:28 +01:00
Don't show calendar integrated videoconference action if videoconference is disabled or BBB is not configured
This commit is contained in:
parent
41ab849ecc
commit
d8e892f7cf
@ -377,6 +377,9 @@ class calendar_uiviews extends calendar_ui
|
||||
),
|
||||
);
|
||||
|
||||
// Don't show videoconference action if videoconference is disabled or BBB is not configured
|
||||
if (\EGroupware\Status\Hooks::isVCRecordingSupported() && !EGroupware\Status\Hooks::isVideoconferenceDisabled())
|
||||
{
|
||||
// Add toggle for video calls
|
||||
$status_config = Api\Config::read("status");
|
||||
if($status_config["status_cat_videocall"])
|
||||
@ -392,6 +395,7 @@ class calendar_uiviews extends calendar_ui
|
||||
'data' => array('toggle_off' => '0', 'toggle_on' => '1')
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
// Add integrated app options
|
||||
$integration_data = Api\Hooks::process(array('location' => 'calendar_search_union'));
|
||||
|
Loading…
Reference in New Issue
Block a user