mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-22 10:08:45 +02:00
Do not assume that a User is linked to a Person !
SVN:trunk[964]
This commit is contained in:
@@ -493,6 +493,10 @@ class UserRights
|
||||
{
|
||||
return '';
|
||||
}
|
||||
if (!MetaModel::IsValidAttCode(get_class($oUser), 'contactid'))
|
||||
{
|
||||
return '';
|
||||
}
|
||||
return $oUser->Get('contactid');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user