ロールのユーザーリストを非公開にできるように (#10987)
* ロールのユーザーリストを非公開にできるように * Changelog update
This commit is contained in:
parent
f69627939b
commit
f3a16bcd6d
9 changed files with 45 additions and 1 deletions
|
|
@ -54,6 +54,9 @@ export default class extends Endpoint<typeof meta, typeof paramDef> {
|
|||
if (role == null) {
|
||||
throw new ApiError(meta.errors.noSuchRole);
|
||||
}
|
||||
if (!role.isPublicUsers) {
|
||||
return [];
|
||||
}
|
||||
|
||||
const query = this.queryService.makePaginationQuery(this.roleAssignmentsRepository.createQueryBuilder('assign'), ps.sinceId, ps.untilId)
|
||||
.andWhere('assign.roleId = :roleId', { roleId: role.id })
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue