From 61815934bb320ee1a0a29a10a87a9650db0df825 Mon Sep 17 00:00:00 2001 From: mattf Date: Sun, 4 Dec 2016 13:54:54 +0000 Subject: [PATCH] removed modify requirements from soundboard agent screen for user git-svn-id: svn://192.168.202.10@2641 3d104415-ff17-0410-8863-d5cf3c621b8a --- agc_2-X/trunk/www/agc/vdc_soundboard_display.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/agc_2-X/trunk/www/agc/vdc_soundboard_display.php b/agc_2-X/trunk/www/agc/vdc_soundboard_display.php index f13e5f56..6715bd11 100644 --- a/agc_2-X/trunk/www/agc/vdc_soundboard_display.php +++ b/agc_2-X/trunk/www/agc/vdc_soundboard_display.php @@ -137,11 +137,11 @@ $auth_message = user_authorization($user,$pass,'',0,$bcrypt,0,0); if ($auth_message == 'GOOD') {$auth=1;} -$stmt="SELECT count(*) from vicidial_users where user='$user' and ( (modify_audiostore='1') or (modify_scripts='1') );"; +$stmt="SELECT count(*) from vicidial_users where user='$user' and active='Y';"; if ($DB) {echo "|$stmt|\n";} $rslt=mysql_to_mysqli($stmt, $link); $row=mysqli_fetch_row($rslt); -$VUmodify=$row[0]; +$VUexists=$row[0]; $stmt="SELECT count(*) from vicidial_live_agents where user='$user';"; if ($DB) {echo "|$stmt|\n";} @@ -161,9 +161,9 @@ if ( (!preg_match("/soundboard/i",$active_modules)) and ($SSagent_soundboards < exit; } -if ( (strlen($user)<2) or (strlen($pass)<2) or ($auth==0) or ( ( ($LVAactive < 1) or ($WCSactive < 1) ) and ($VUmodify < 1) ) ) +if ( (strlen($user)<2) or (strlen($pass)<2) or ($auth==0) or ( ( ($LVAactive < 1) or ($WCSactive < 1) ) and ($VUexists < 1) ) ) { - echo _QXZ("Invalid Username/Password").": |$user|$pass|$auth_message|$LVAactive|$WCSactive|$VUmodify|\n"; + echo _QXZ("Invalid Username/Password").": |$user|$pass|$auth_message|$LVAactive|$WCSactive|$VUexists|\n"; exit; } else