Browse Source

Do not assume that a User is linked to a Person !

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@964 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 14 năm trước cách đây
mục cha
commit
6444c8499a
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      core/userrights.class.inc.php

+ 4 - 0
core/userrights.class.inc.php

@@ -493,6 +493,10 @@ class UserRights
 		{
 			return '';
 		}
+		if (!MetaModel::IsValidAttCode(get_class($oUser), 'contactid'))
+		{
+			return '';
+		}
 		return $oUser->Get('contactid');
 	}