fix acreate app bg
This commit is contained in:
parent
947f208ebc
commit
34b9844a7c
|
|
@ -43,7 +43,7 @@ public function create()
|
|||
],422);
|
||||
}
|
||||
//validate legalization number exists
|
||||
elseif(!$this->account->can_apply_legal_number && !$this->account->can_extend_legal_number){
|
||||
elseif(!$this->account->can_apply && !$this->account->can_extend){
|
||||
$month = Config::get('settings.legalization_extend') ?? 1;
|
||||
return response([
|
||||
'success' => false,
|
||||
|
|
|
|||
|
|
@ -22,8 +22,8 @@ public function toArray($request)
|
|||
'profile' => $this->getProfile(),
|
||||
'legal_number' => $this->legalization_number,
|
||||
'legal_expires_at' => !is_null($this->expires_at)?$this->expires_at->format('d.m.Y'):null,
|
||||
'legal_can_apply' => $this->can_apply_legal_number,
|
||||
'legal_can_extend' => $this->can_extend_legal_number,
|
||||
'legal_can_apply' => $this->can_apply,
|
||||
'legal_can_extend' => $this->can_extend,
|
||||
'legal_app_status' => $this->application_status,
|
||||
];
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue