mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-03 20:54:36 -04:00
Add showRff method to ClientContact model
This commit is contained in:
parent
3168150171
commit
ea6be8d698
@ -351,5 +351,12 @@ class ClientContact extends Authenticatable implements HasLocalePreference
|
|||||||
return config('ninja.react_url')."/#/clients/{$this->client->hashed_id}";
|
return config('ninja.react_url')."/#/clients/{$this->client->hashed_id}";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function showRff(): bool
|
||||||
|
{
|
||||||
|
if (\strlen($this->first_name) === 0 || \strlen($this->last_name) === 0 || \strlen($this->email) === 0) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user