fix: 修复cname服务普通用户access访问权限问题

This commit is contained in:
xiaojunnuo
2024-10-20 11:47:35 +08:00
parent e8b5fcf3ee
commit c1e3e2ee1f
12 changed files with 65 additions and 28 deletions
@@ -34,11 +34,13 @@ export class CnameRecordController extends CrudController<CnameProviderService>
disabled: false,
};
merge(bean, def);
bean.userId = this.getUserId();
return super.add(bean);
}
@Post('/update', { summary: 'sys:settings:edit' })
async update(@Body(ALL) bean: any) {
bean.userId = this.getUserId();
return super.update(bean);
}