This commit is contained in:
Konstantin Bogdanov 2022-12-20 03:43:53 +01:00
parent b07001e7d7
commit bb03efac38
Signed by: thevar1able
GPG Key ID: DB399448D9FE52F1

View File

@ -218,13 +218,11 @@ SettingsConstraints SettingsProfileElements::toSettingsConstraints(const AccessC
SettingsConstraints res{access_control}; SettingsConstraints res{access_control};
for (const auto & elem : *this) for (const auto & elem : *this)
if (!elem.setting_name.empty() && elem.isConstraint() && elem.setting_name != ALLOW_BACKUP_SETTING_NAME) if (!elem.setting_name.empty() && elem.isConstraint() && elem.setting_name != ALLOW_BACKUP_SETTING_NAME)
{
res.set( res.set(
elem.setting_name, elem.setting_name,
elem.min_value, elem.min_value,
elem.max_value, elem.max_value,
elem.writability ? *elem.writability : SettingConstraintWritability::WRITABLE); elem.writability ? *elem.writability : SettingConstraintWritability::WRITABLE);
}
return res; return res;
} }