|
@@ -639,6 +639,7 @@ class Api extends BaseController {
|
|
|
|
|
|
if (!TalentApi::checkIsEditable($file["mainId"]))
|
|
|
return json(["msg" => "当前状态不能删除或者文件已删除,请刷新重试。"]);
|
|
|
+
|
|
|
if ($this->chkIsFileOwner($file["mainId"], $file["type"])) {
|
|
|
if (!empty($file["url"])) {
|
|
|
$filepath = "storage/" . $file["url"];
|
|
@@ -887,7 +888,7 @@ class Api extends BaseController {
|
|
|
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"])
|
|
|
+ if ($user_id == $record["enterpriseId"])
|
|
|
return true;
|
|
|
}
|
|
|
break;
|