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};
for (const auto & elem : *this)
if (!elem.setting_name.empty() && elem.isConstraint() && elem.setting_name != ALLOW_BACKUP_SETTING_NAME)
{
res.set(
elem.setting_name,
elem.min_value,
elem.max_value,
elem.writability ? *elem.writability : SettingConstraintWritability::WRITABLE);
}
return res;
}