core: optionally don't return groups' users and users' groups by default (#9179)
* core: don't return groups' users and users' groups by default Signed-off-by: Jens Langhammer <jens@goauthentik.io> * explicitly fetch users and groups in LDAP Signed-off-by: Jens Langhammer <jens@goauthentik.io> * add indicies Signed-off-by: Jens Langhammer <jens@goauthentik.io> --------- Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
		| @ -42,6 +42,7 @@ export class GroupListPage extends TablePage<Group> { | ||||
|             page: page, | ||||
|             pageSize: (await uiConfig()).pagination.perPage, | ||||
|             search: this.search || "", | ||||
|             includeUsers: false, | ||||
|         }); | ||||
|     } | ||||
|  | ||||
|  | ||||
| @ -33,6 +33,7 @@ export class MemberSelectTable extends TableModal<User> { | ||||
|             page: page, | ||||
|             pageSize: (await uiConfig()).pagination.perPage, | ||||
|             search: this.search || "", | ||||
|             includeGroups: false, | ||||
|         }); | ||||
|     } | ||||
|  | ||||
|  | ||||
| @ -105,6 +105,7 @@ export class RelatedGroupList extends Table<Group> { | ||||
|             pageSize: (await uiConfig()).pagination.perPage, | ||||
|             search: this.search || "", | ||||
|             membersByPk: this.targetUser ? [this.targetUser.pk] : [], | ||||
|             includeUsers: false, | ||||
|         }); | ||||
|     } | ||||
|  | ||||
|  | ||||
| @ -145,6 +145,7 @@ export class RelatedUserList extends WithBrandConfig(WithCapabilitiesConfig(Tabl | ||||
|             type: this.hideServiceAccounts | ||||
|                 ? [CoreUsersListTypeEnum.External, CoreUsersListTypeEnum.Internal] | ||||
|                 : undefined, | ||||
|             includeGroups: false, | ||||
|         }); | ||||
|         this.me = await me(); | ||||
|         return users; | ||||
|  | ||||
| @ -38,6 +38,7 @@ export class GroupSelectModal extends TableModal<Group> { | ||||
|             page: page, | ||||
|             pageSize: (await uiConfig()).pagination.perPage, | ||||
|             search: this.search || "", | ||||
|             includeUsers: false, | ||||
|         }); | ||||
|     } | ||||
|  | ||||
|  | ||||
| @ -146,6 +146,7 @@ export class UserListPage extends WithBrandConfig(WithCapabilitiesConfig(TablePa | ||||
|             search: this.search || "", | ||||
|             pathStartswith: getURLParam("path", ""), | ||||
|             isActive: this.hideDeactivated ? true : undefined, | ||||
|             includeGroups: false, | ||||
|         }); | ||||
|         this.userPaths = await new CoreApi(DEFAULT_CONFIG).coreUsersPathsRetrieve({ | ||||
|             search: this.search, | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Jens L
					Jens L