From f9bb2e7a14aaede48508f0523acbeac46ec95f8a Mon Sep 17 00:00:00 2001 From: Eric Date: Tue, 20 Nov 2018 18:03:08 +0100 Subject: [PATCH] =?UTF-8?q?:green=5Fheart:=20N=C2=B01583=20-=20user=5Fmana?= =?UTF-8?q?ger=20User=20cannot=20create=20a=20User=20without=20Contact=20(?= =?UTF-8?q?fixed=20CI)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/userrights.class.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/userrights.class.inc.php b/core/userrights.class.inc.php index bcd3c6163..ecb24957b 100644 --- a/core/userrights.class.inc.php +++ b/core/userrights.class.inc.php @@ -300,7 +300,7 @@ abstract class User extends cmdbAbstractObject if (!UserRights::IsAdministrator()) { - if (empty($this->GetOriginal('org_id')) || empty($this->Get('org_id'))) + if ((empty($this->GetOriginal('contactid')) && !($this->IsNew())) || empty($this->Get('contactid'))) { $this->m_aCheckIssues[] = Dict::S('Class:User/Error:PersonIsMandatory'); }