fix if_permission

This commit is contained in:
blackc2004 2016-02-15 11:19:18 -08:00
parent 1054a0fbdc
commit be018be1f2
1 changed files with 2 additions and 2 deletions

View File

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