zengyicheng 1 rok pred
rodič
commit
1d7148b4f3
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      ssti.js

+ 1 - 1
ssti.js

@@ -150,7 +150,7 @@ router.post("/SelectAllDepartment", (req, res) => {
     const str = req.headers.cookie ? req.headers.cookie : '';
     const getUserid = getUid(str);
     mysql.usselect([_mysqlLabor[0], _mysqlLabor[1], 'selectUserIdentity', data['uid']], (ret3) => {
-        if (ret3[0][0].type == 0 || ret3[0][0].type == 1 || ret3[0][0].type == 2) {
+        if (ret3[0][0].type == 0 || ret3[0][0].type == 1 || ret3[0][0].type == 2 || ret3[0][0].type == 3 || ret3[0][0].type == 4 || ret3[0][0].type == 5 || ret3[0][0].type == 6) {
             if (md5(data['uid']) == getUserid) {
                 QMysql(req, res, "select_AllDepartment");
             } else {