app: Clean up code, don't error on admin empty email
This commit is contained in:
committed by
nitnelave
parent
dcba3d17dc
commit
17bcd7645b
@@ -277,6 +277,7 @@ impl<Handler: BackendHandler> Mutation<Handler> {
|
||||
.remove_attributes
|
||||
.unwrap_or_default()
|
||||
.into_iter()
|
||||
.filter(|attr| attr != "mail") // mail can be sent when editing an admin user
|
||||
.map(Into::into)
|
||||
.collect(),
|
||||
insert_attributes,
|
||||
|
||||
Reference in New Issue
Block a user