瀏覽代碼

增加人才信息变更的附件删除

sandm 1 年之前
父節點
當前提交
0b67440cdb
共有 1 個文件被更改,包括 8 次插入0 次删除
  1. 8 0
      app/common/controller/Api.php

+ 8 - 0
app/common/controller/Api.php

@@ -883,6 +883,14 @@ class Api extends BaseController {
                         return true;
                 }
                 break;
+            case ProjectState::BASICCHANGE:
+                if ($this->user["usertype"] == 2) {
+                    $user_id = $this->user["uid"];
+                    $record = Db::table("un_talent_basic_change")->findOrEmpty($mainId);
+                    if ($user_id == $record["enterprise_id"])
+                        return true;
+                }
+                break;
         }
         return false;
     }