]> git.entuzijast.net Git - freeradius-dialup-admin.git/commitdiff
Consider the account locked either if Dialup-Access == FALSE or if it is not set...
authorkkalev <kkalev>
Fri, 12 Sep 2003 13:38:46 +0000 (13:38 +0000)
committerkkalev <kkalev>
Fri, 12 Sep 2003 13:38:46 +0000 (13:38 +0000)
Changelog
htdocs/user_admin.php3

index 00d41e3c83bd8533b0999ba7404647b613e73a63..f5f440756fe0ffb54611dc0873f837ad4676c7ba 100644 (file)
--- a/Changelog
+++ b/Changelog
@@ -40,6 +40,7 @@ Ver 1.63:
 * Change AcctStopTime = '0' with AcctStopTime IS NULL
 * Add a few more attribute help pages from Ulrich Walcher <uwalcher@bcore.de>
 * Also check for $server != '' in stats.php3. Bug noted by Ulrich Walcher <uwalcher@bcore.de>
+* Consider the account locked either if Dialup-Access == FALSE or if it is not set at all
 Ver 1.62:
 * Remove one sql query from user_admin which was not needed.
 * Instead of a query like "LIKE 'YYYY-MM-DD%'" use "AcctStopTime >= 'YYYY-MM-DD 00:00:00 AND AcctStopTime
index 732a4acee47294342443b91267cffdb8540ea3e1..e9a44c1744a1e5de965e70637834553672099b5b 100644 (file)
@@ -243,7 +243,7 @@ $daily_limit = (is_numeric($daily_limit)) ? time2str($daily_limit) : $daily_limi
 $session_limit = (is_numeric($session_limit)) ? time2str($session_limit) : $session_limit;
 $remaining = (is_numeric($remaining)) ? time2str($remaining) : $remaining;
 
-if ($item_vals['Dialup-Access'][0] == 'FALSE')
+if ($item_vals['Dialup-Access'][0] == 'FALSE' || (!isset($item_vals['Dialup-Access'][0]) && $attrmap['Dialup-Access'] != ''))
        $msg =<<<EON
 <font color=red><b> The user account is locked </b></font>
 EON;