if_group caused no conferences to show when user not in the admin group (#6942)

* if_group caused no conferences to show when user not in the admin group

* if_group replaced to be conference_room_edit
This commit is contained in:
frytimo
2024-04-05 20:33:42 -03:00
committed by GitHub
parent 56fe5831af
commit 2f31b5addd
2 changed files with 2 additions and 2 deletions

View File

@@ -100,7 +100,7 @@
}
//prepare to page the results
if (if_group("superadmin") || if_group("admin")) {
if (permission_exists('conference_view')) {
//show all extensions
$sql = "select count(*) from v_conferences ";
$sql .= "where true ";