|
@@ -444,7 +444,7 @@ class Employee extends Controller
|
|
|
if (!$Employee) {
|
|
if (!$Employee) {
|
|
|
return json_send(['code' => 'error', 'msg' => '记录不存在']);
|
|
return json_send(['code' => 'error', 'msg' => '记录不存在']);
|
|
|
}
|
|
}
|
|
|
- if ($is_admin == 1 && $admin_id == $Employee->id) {
|
|
|
|
|
|
|
+ if ($is_admin != 1 && $admin_id == $Employee->id) {
|
|
|
return json_send(['code' => 'error', 'msg' => '不能修改自己的状态']);
|
|
return json_send(['code' => 'error', 'msg' => '不能修改自己的状态']);
|
|
|
}
|
|
}
|
|
|
$Employee->status = $status;
|
|
$Employee->status = $status;
|