瀏覽代碼

dont create few auto rule in mass change form for one user

Roman Dmitriev 2 年之前
父節點
當前提交
388ebe3385
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      html/utils/auth_apply.php

+ 1 - 1
html/utils/auth_apply.php

@@ -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);
                 if (!empty($first_auth) and !empty($first_auth['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)) {
                                 $new['user_id']=$first_auth['user_id'];
                                 $new['type']=2;