|
@@ -104,7 +104,7 @@ if (isset($_POST["ApplyForAll"])) {
|
|
|
$first_auth = get_record_sql($db_link,"SELECT user_id,mac FROM User_auth WHERE id=".$val);
|
|
$first_auth = get_record_sql($db_link,"SELECT user_id,mac FROM User_auth WHERE id=".$val);
|
|
|
if (!empty($first_auth) and !empty($first_auth['mac'])) {
|
|
if (!empty($first_auth) and !empty($first_auth['mac'])) {
|
|
|
if ($a_bind_mac) {
|
|
if ($a_bind_mac) {
|
|
|
- $auth_rules = get_record_sql($db_link,"SELECT * FROM auth_rules WHERE user_id=".$first_auth['user_id']." AND type=2 AND rule='".$first_auth['mac']."'");
|
|
|
|
|
|
|
+ $auth_rules = get_record_sql($db_link,"SELECT * FROM auth_rules WHERE user_id=".$first_auth['user_id']." AND type=2");
|
|
|
if (empty($auth_rules)) {
|
|
if (empty($auth_rules)) {
|
|
|
$new['user_id']=$first_auth['user_id'];
|
|
$new['user_id']=$first_auth['user_id'];
|
|
|
$new['type']=2;
|
|
$new['type']=2;
|