Fix logos (closes #1652)
This commit is contained in:
@@ -1149,7 +1149,7 @@ impl ManageDirectory for Store {
|
||||
}
|
||||
(
|
||||
PrincipalAction::Set,
|
||||
PrincipalField::Description | PrincipalField::Picture,
|
||||
PrincipalField::Description,
|
||||
PrincipalValue::String(value),
|
||||
) => {
|
||||
if !value.is_empty() {
|
||||
@@ -1158,6 +1158,14 @@ impl ManageDirectory for Store {
|
||||
principal.description = None;
|
||||
}
|
||||
}
|
||||
(PrincipalAction::Set, PrincipalField::Picture, PrincipalValue::String(value)) => {
|
||||
principal
|
||||
.data
|
||||
.retain(|v| !matches!(v, PrincipalData::Picture(_)));
|
||||
if !value.is_empty() {
|
||||
principal.data.push(PrincipalData::Picture(value));
|
||||
}
|
||||
}
|
||||
(PrincipalAction::Set, PrincipalField::Quota, PrincipalValue::Integer(quota))
|
||||
if matches!(
|
||||
principal_type,
|
||||
|
||||
Reference in New Issue
Block a user