Merge pull request #1440 from blackc2004/master

fix if_permission
This commit is contained in:
FusionPBX 2016-02-15 20:37:18 -07:00
commit 612dd5d466
1 changed files with 2 additions and 2 deletions

View File

@ -42,7 +42,7 @@
public function room_count() { public function room_count() {
//get the room count //get the room count
$not_admin = 1; $not_admin = 1;
if (if_permision("conference_room_view_all")) { if (permission_exists("conference_room_view_all")) {
$not_admin = 0; $not_admin = 0;
} }
$sql = "select count(*) as num_rows from v_conference_rooms as r, v_meetings as p "; $sql = "select count(*) as num_rows from v_conference_rooms as r, v_meetings as p ";
@ -79,7 +79,7 @@
public function rooms() { public function rooms() {
//get the list of rooms //get the list of rooms
$not_admin = 1; $not_admin = 1;
if (if_permision("conference_room_view_all")) { if (permission_exists("conference_room_view_all")) {
$not_admin = 0; $not_admin = 0;
} }
$fields = "r.domain_uuid, r.conference_room_uuid, r.conference_center_uuid, r.meeting_uuid, r.conference_room_name, max_members, "; $fields = "r.domain_uuid, r.conference_room_uuid, r.conference_center_uuid, r.meeting_uuid, r.conference_room_name, max_members, ";