mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
Fixed an issue in the internal error reporting (user rights not sufficient to update an object)
SVN:trunk[1303]
This commit is contained in:
@@ -2367,12 +2367,12 @@ EOF
|
||||
$oAttCode = MetaModel::GetAttributeDef(get_class($this), $sAttCode);
|
||||
$aForbiddenFields[] = $oAttCode->GetLabel();
|
||||
}
|
||||
if (count($aForbiddenFields) > 0)
|
||||
{
|
||||
// Security issue
|
||||
$this->m_bSecurityIssue = true;
|
||||
$this->m_aCheckIssues[] = Dict::Format('UI:Delete:NotAllowedToUpdate_Fields',implode(', ', $aForbiddenFields));
|
||||
}
|
||||
}
|
||||
if (count($aForbiddenFields) > 0)
|
||||
{
|
||||
// Security issue
|
||||
$this->m_bSecurityIssue = true;
|
||||
$this->m_aCheckIssues[] = Dict::Format('UI:Delete:NotAllowedToUpdate_Fields',implode(', ', $aForbiddenFields));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user