mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-26 03:58:45 +02:00
N°3203 - Datamodel: Add semantic for image & state attributes Part. I
This commit is contained in:
@@ -1040,8 +1040,7 @@ class ObjectController extends BrickController
|
||||
$sHostId = $sObjectId;
|
||||
|
||||
// Security bypass for the image attribute of a class
|
||||
// Note: This will be changed with a proper DM check when corresponding bug is being worked on
|
||||
if(is_a($sObjectClass, 'Contact', true) && ($sObjectField === 'picture')){
|
||||
if(MetaModel::GetImageAttributeCode($sObjectClass) === $sObjectField) {
|
||||
$bCheckSecurity = false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user