diff --git a/www/vicidial/force_agent_logout.php b/www/vicidial/force_agent_logout.php index 35a4c79e..a3701aec 100644 --- a/www/vicidial/force_agent_logout.php +++ b/www/vicidial/force_agent_logout.php @@ -94,13 +94,13 @@ if ($auth_message == 'GOOD') if ($auth > 0) { - $stmt="SELECT count(*) from vicidial_users where user='$PHP_AUTH_USER' and user_level > 8 and view_reports='1';"; + $stmt="SELECT count(*) from vicidial_users where user='$PHP_AUTH_USER' and user_level > 7 and view_reports='1';"; if ($DB) {echo "|$stmt|\n";} $rslt=mysql_to_mysqli($stmt, $link); $row=mysqli_fetch_row($rslt); $admin_auth=$row[0]; - $stmt="SELECT count(*) from vicidial_users where user='$PHP_AUTH_USER' and user_level > 8 and modify_users='1';"; + $stmt="SELECT count(*) from vicidial_users where user='$PHP_AUTH_USER' and user_level > 7 and modify_users='1';"; if ($DB) {echo "|$stmt|\n";} $rslt=mysql_to_mysqli($stmt, $link); $row=mysqli_fetch_row($rslt); diff --git a/www/vicidial/reset_agent_pass.php b/www/vicidial/reset_agent_pass.php index 4e1a624c..07208bb7 100644 --- a/www/vicidial/reset_agent_pass.php +++ b/www/vicidial/reset_agent_pass.php @@ -95,13 +95,13 @@ if ($auth_message == 'GOOD') if ($auth > 0) { - $stmt="SELECT count(*) from vicidial_users where user='$PHP_AUTH_USER' and user_level > 8 and view_reports='1';"; + $stmt="SELECT count(*) from vicidial_users where user='$PHP_AUTH_USER' and user_level > 7 and view_reports='1';"; if ($DB) {echo "|$stmt|\n";} $rslt=mysql_to_mysqli($stmt, $link); $row=mysqli_fetch_row($rslt); $admin_auth=$row[0]; - $stmt="SELECT count(*) from vicidial_users where user='$PHP_AUTH_USER' and user_level > 8 and modify_users='1';"; + $stmt="SELECT count(*) from vicidial_users where user='$PHP_AUTH_USER' and user_level > 7 and modify_users='1';"; if ($DB) {echo "|$stmt|\n";} $rslt=mysql_to_mysqli($stmt, $link); $row=mysqli_fetch_row($rslt);