feat: add limitation to free accounts (#1715)
This commit is contained in:
@@ -97,6 +97,12 @@ class ContactsController extends Controller
|
||||
*/
|
||||
public function create()
|
||||
{
|
||||
if (auth()->user()->account->hasReachedContactLimit()
|
||||
&& auth()->user()->account->hasLimitations()
|
||||
&& ! auth()->user()->account->legacy_free_plan_unlimited_contacts) {
|
||||
return redirect()->route('settings.subscriptions.index');
|
||||
}
|
||||
|
||||
$data = [
|
||||
'genders' => auth()->user()->account->genders,
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user