mirror of
https://github.com/lldap/lldap.git
synced 2026-07-25 17:58:44 +00:00
app: Allow custom attributes in group creation
This commit is contained in:
committed by
nitnelave
parent
a190fe7ddf
commit
4ebfd0525b
@@ -9,7 +9,7 @@ use crate::{
|
||||
},
|
||||
infra::{
|
||||
common_component::{CommonComponent, CommonComponentParts},
|
||||
form_utils::{read_all_form_attributes, AttributeValue},
|
||||
form_utils::{read_all_form_attributes, AttributeValue, EmailIsRequired, IsAdmin},
|
||||
schema::AttributeType,
|
||||
},
|
||||
};
|
||||
@@ -210,8 +210,8 @@ impl GroupDetailsForm {
|
||||
let mut all_values = read_all_form_attributes(
|
||||
ctx.props().group_attributes_schema.iter(),
|
||||
&self.form_ref,
|
||||
ctx.props().is_admin,
|
||||
false,
|
||||
IsAdmin(ctx.props().is_admin),
|
||||
EmailIsRequired(false),
|
||||
)?;
|
||||
let base_attributes = &self.group.attributes;
|
||||
all_values.retain(|a| {
|
||||
|
||||
Reference in New Issue
Block a user