Sfoglia il codice sorgente

bugfix:
- fixed set ou_id when create ip user record

Dmitriev Roman 4 anni fa
parent
commit
442e327782
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      html/admin/users/edituser.php

+ 1 - 0
html/admin/users/edituser.php

@@ -124,6 +124,7 @@ if (isset($_POST["addauth"])) {
             if (!empty($fid)) {
             if (!empty($fid)) {
                 $new['dhcp']=$f_dhcp;
                 $new['dhcp']=$f_dhcp;
                 update_record($db_link,"User_auth","id=".$fid,$new);
                 update_record($db_link,"User_auth","id=".$fid,$new);
+                apply_auth_rule($db_link,$fid,$id);
                 LOG_WARNING($db_link,"Создан новый адрес доступа: ip => $fip, mac => $fmac");
                 LOG_WARNING($db_link,"Создан новый адрес доступа: ip => $fip, mac => $fmac");
                 header("Location: /admin/users/editauth.php?id=".$fid);
                 header("Location: /admin/users/editauth.php?id=".$fid);
                 exit;
                 exit;