mirror of
https://github.com/strapi/strapi.git
synced 2025-08-29 11:15:55 +00:00
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:
parent
7f43c80009
commit
ffc36acb30
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user