mirror of
https://github.com/certd/certd.git
synced 2026-04-15 05:00:52 +08:00
fix: 修复流水线分组可以被所有人看见的bug
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user