Compare commits

..

1 Commits

View File

@ -152,7 +152,7 @@ abstract class Base
if (! $o->exists) { if (! $o->exists) {
$o->team_id = $this->enterprise_id ? NULL : $this->team()->id; $o->team_id = $this->enterprise_id ? NULL : $this->team()->id;
$o->enterprise_id = ($x=$this->enterprise())->exists ? $x->id : NULL; $o->enterprise_id = ($x=$this->enterprise())->exists ? $x->id : NULL;
$o->active = TRUE; $o->active = FALSE;
$o->save(); $o->save();
Log::debug(sprintf('%s: User Created in DB [%s] (%s)',self::LOGKEY,$this->user_id,$o->id)); Log::debug(sprintf('%s: User Created in DB [%s] (%s)',self::LOGKEY,$this->user_id,$o->id));