mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-13 12:02:51 +00:00
feat: 添加删除附件日志记录
This commit is contained in:
parent
35fd8e62ac
commit
077713003f
@ -1783,6 +1783,13 @@ class ProjectController extends AbstractController
|
||||
//
|
||||
ProjectPermission::userTaskPermission(Project::userProject($task->project_id), ProjectPermission::TASK_REMOVE, $task);
|
||||
//
|
||||
$task->addLog('删除附件:' . $file->name, [
|
||||
'file_id' => $file->id,
|
||||
'name' => $file->name,
|
||||
'size' => $file->size,
|
||||
'path' => $file->getRawOriginal('path'),
|
||||
'thumb' => $file->getRawOriginal('thumb'),
|
||||
]);
|
||||
$task->pushMsg('filedelete', $file);
|
||||
$file->delete();
|
||||
//
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user