mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-24 06:05:01 +02:00
parent
c3385e6e38
commit
ed00ab04c7
@ -130,7 +130,7 @@ void ConfigObject::ModifyAttribute(const String& attr, const Value& value, bool
|
||||
int fid = type->GetFieldId(fieldName);
|
||||
Field field = type->GetFieldInfo(fid);
|
||||
|
||||
if (field.Attributes & FAInternal || field.Attributes & FANoModify)
|
||||
if (field.Attributes & FAInternal || field.Attributes & FANoModify)
|
||||
BOOST_THROW_EXCEPTION(std::invalid_argument("Attribute cannot be modified."));
|
||||
|
||||
if (field.Attributes & FAConfig) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user