From 3714dc73f4b67f9b66e896f873ca444218abcdad Mon Sep 17 00:00:00 2001 From: Antonio Fernandez Date: Tue, 29 Oct 2024 17:52:40 -0400 Subject: [PATCH] fix call screen saving (#7174) --- app/ring_groups/ring_group_edit.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/ring_groups/ring_group_edit.php b/app/ring_groups/ring_group_edit.php index dac9283171..cb051eb465 100644 --- a/app/ring_groups/ring_group_edit.php +++ b/app/ring_groups/ring_group_edit.php @@ -378,7 +378,9 @@ } $array["ring_groups"][0]["ring_group_distinctive_ring"] = $ring_group_distinctive_ring; $array["ring_groups"][0]["ring_group_ringback"] = $ring_group_ringback; - $array["ring_groups"][0]["ring_group_call_screen_enabled"] = $ring_group_call_screen_enabled; + if (permission_exists('ring_group_call_screen_enabled')) { + $array["ring_groups"][0]["ring_group_call_screen_enabled"] = $ring_group_call_screen_enabled; + } $array["ring_groups"][0]["ring_group_call_forward_enabled"] = $ring_group_call_forward_enabled; $array["ring_groups"][0]["ring_group_follow_me_enabled"] = $ring_group_follow_me_enabled; if (permission_exists('ring_group_missed_call')) {