Resolved error thrown when trying to filter users by email (#23977)

* fix(admin): Resolved error thrown when trying to filter users by email

* fix(admin): add isActive to allowed fields

---------

Co-authored-by: Ziyi Yuan <daydreamnation@live.com>
This commit is contained in:
akash-dabhi-qed 2025-07-28 20:24:35 +05:30 committed by GitHub
parent 7f43c80009
commit ffc36acb30
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -25,7 +25,14 @@ export const hasSuperAdminRole = (user: AdminUser) => {
return user.roles.filter((role: AdminRole) => role.code === SUPER_ADMIN_CODE).length > 0;
};
export const ADMIN_USER_ALLOWED_FIELDS = ['id', 'firstname', 'lastname', 'username'];
export const ADMIN_USER_ALLOWED_FIELDS = [
'id',
'firstname',
'lastname',
'username',
'email',
'isActive',
];
export default {
createUser,