mirror of
https://github.com/certd/certd.git
synced 2026-07-13 00:37:36 +08:00
fix: 修复群晖测试时报addSecret undefine错误
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user