Fixed the registration count

- Fixed on the dashboard for those with superadmin group
- Fixed the count in the SIP status page
This commit is contained in:
FusionPBX
2024-09-21 12:50:36 -06:00
committed by GitHub
parent 665bb0e802
commit 9292dda43f
3 changed files with 10 additions and 5 deletions
@@ -32,6 +32,9 @@
//registration count
if ($esl->is_connected() && file_exists($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."/app/registrations/")) {
$registration = new registrations;
if (permission_exists("registration_all")) {
$active_registrations = $registration->show = 'all';
}
$active_registrations = $registration->count();
}