mirror of
https://github.com/UA-Fediland/synapse-admin.git
synced 2026-02-10 23:20:15 +00:00
Add edit user_type to user (#209)
This commit is contained in:
parent
67066a1ba7
commit
e787b0a940
5 changed files with 32 additions and 13 deletions
|
|
@ -298,7 +298,8 @@ const resourceMap = {
|
|||
|
||||
function filterNullValues(key, value) {
|
||||
// Filtering out null properties
|
||||
if (value === null) {
|
||||
// to reset user_type from user, it must be null
|
||||
if (value === null && key !== "user_type") {
|
||||
return undefined;
|
||||
}
|
||||
return value;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue