feat(todo): 待办设置权限放开系统管理员(任意群可设/取消他人待办)

- checkTodoOwnerPermission 最高优先级放行系统管理员,覆盖无群主的全员群等场景
- 同步设/取消待办、到点提醒接口报错文案与系统设置描述
- 补充管理员放行测试(user/project/全员群)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
kuaifan
2026-06-01 15:02:03 +00:00
parent 0a6e944a9a
commit daca384822
7 changed files with 42 additions and 6 deletions

View File

@@ -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('仅群主、项目/任务负责人或系统管理员可设置或取消他人待办');
}
}
//