fix: 修复流水线分组可以被所有人看见的bug

This commit is contained in:
xiaojunnuo
2024-12-09 02:24:30 +08:00
parent 30ddf5ec41
commit a0e838d1ee
8 changed files with 17 additions and 12 deletions

View File

@@ -25,7 +25,8 @@ export class UserSettingsController extends CrudController<UserSettingsService>
@Post('/list', { summary: Constants.per.authOnly })
async list(@Body(ALL) body) {
body.userId = this.getUserId();
body.query = body.query ?? {};
body.query.userId = this.getUserId();
return super.list(body);
}