diff --git a/app/Http/Controllers/Api/DialogController.php b/app/Http/Controllers/Api/DialogController.php
index 047d9d3c3..39fbf331f 100755
--- a/app/Http/Controllers/Api/DialogController.php
+++ b/app/Http/Controllers/Api/DialogController.php
@@ -2647,7 +2647,7 @@ class DialogController extends AbstractController
if (Base::settingFind('system', 'todo_set_permission') === 'close') {
$others = array_diff($userids, [$user->userid]);
if ($others && !$dialog->checkTodoOwnerPermission($user->userid)) {
- return Base::retError('仅群主、项目/任务负责人可设置或取消他人待办');
+ return Base::retError('仅群主、项目/任务负责人或系统管理员可设置或取消他人待办');
}
}
//
diff --git a/app/Models/WebSocketDialog.php b/app/Models/WebSocketDialog.php
index ce546037e..34a73b6f7 100644
--- a/app/Models/WebSocketDialog.php
+++ b/app/Models/WebSocketDialog.php
@@ -723,6 +723,10 @@ class WebSocketDialog extends AbstractModel
if ($userid <= 0) {
return false;
}
+ // 系统管理员:可管理任意会话的他人待办(与管理员全局管理能力一致,覆盖无群主的全员群等)
+ if (User::find($userid)?->isAdmin()) {
+ return true;
+ }
// 群主 / 群管理员
if ($this->isOwner($userid)) {
return true;
diff --git a/app/Models/WebSocketDialogMsg.php b/app/Models/WebSocketDialogMsg.php
index 44705f71a..909c2c224 100644
--- a/app/Models/WebSocketDialogMsg.php
+++ b/app/Models/WebSocketDialogMsg.php
@@ -428,7 +428,7 @@ class WebSocketDialogMsg extends AbstractModel
$affected = array_unique(array_merge($cancel, $setup)); // 本次真正影响到的用户
$others = array_diff($affected, [$sender]); // 排除"自己"
if ($others && !$dialog->checkTodoOwnerPermission($sender)) {
- return Base::retError('仅群主、项目/任务负责人可设置或取消他人待办');
+ return Base::retError('仅群主、项目/任务负责人或系统管理员可设置或取消他人待办');
}
}
//
diff --git a/language/original-api.txt b/language/original-api.txt
index 12acfe474..b082c9d6c 100644
--- a/language/original-api.txt
+++ b/language/original-api.txt
@@ -976,7 +976,7 @@ LDAP 用户缺少邮箱属性,请联系管理员配置
负责人不能任命为项目管理员
普通成员不能移出群主或群管理员
只有群主、群管理员或邀请人可以移出成员
-仅群主、项目/任务负责人可设置或取消他人待办
+仅群主、项目/任务负责人或系统管理员可设置或取消他人待办
请选择文件
仅支持 xls/xlsx/csv 文件
文件中没有可导入的数据
diff --git a/language/original-web.txt b/language/original-web.txt
index 18e0eca0f..9d15d1d59 100644
--- a/language/original-web.txt
+++ b/language/original-web.txt
@@ -2395,7 +2395,7 @@ AI任务分析
部门管理员同步失败
待办设置权限
允许:所有成员可设置/取消他人待办。
-禁止:仅本人、群主(含群管理员)、项目负责人(含项目管理员)、任务负责人可设置/取消待办。
+禁止:仅本人、系统管理员、群主(含群管理员)、项目负责人(含项目管理员)、任务负责人可设置/取消待办。
批量导入用户
请按模板填写后上传,列顺序:邮箱、昵称、初始密码、职位(选填);单次最多导入500条。
diff --git a/resources/assets/js/pages/manage/setting/components/SystemSetting.vue b/resources/assets/js/pages/manage/setting/components/SystemSetting.vue
index 54556385d..e56b5410c 100644
--- a/resources/assets/js/pages/manage/setting/components/SystemSetting.vue
+++ b/resources/assets/js/pages/manage/setting/components/SystemSetting.vue
@@ -213,7 +213,7 @@