mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
💚 N°1583 - user_manager User cannot create a User without Contact (fixed CI)
This commit is contained in:
@@ -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');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user