fix: 修复群晖测试时报addSecret undefine错误

This commit is contained in:
xiaojunnuo
2026-03-16 22:51:09 +08:00
parent 0b9933df1e
commit 5eb4aa3a0e
15 changed files with 31 additions and 16 deletions
@@ -41,7 +41,7 @@ export class HandleController extends BaseController {
if (body.record.id > 0) {
const oldEntity = await this.accessService.info(body.record.id);
if (oldEntity) {
if (oldEntity.userId !== this.getUserId()) {
if (oldEntity.userId !== userId) {
throw new Error('access not found');
}
if (oldEntity.projectId && oldEntity.projectId !== projectId) {