Browse Source

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

sandm 1 year ago
parent
commit
0b67440cdb
1 changed files with 8 additions and 0 deletions
  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;
                         return true;
                 }
                 }
                 break;
                 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;
         return false;
     }
     }