fix: hide terms on self hosted
This commit is contained in:
@@ -5,10 +5,7 @@ declare(strict_types=1);
|
||||
namespace App\Providers;
|
||||
|
||||
use App\Actions\Jetstream\DeleteUser;
|
||||
use Illuminate\Support\Arr;
|
||||
use Illuminate\Support\Facades\Config;
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
use Laravel\Jetstream\Features;
|
||||
use Laravel\Jetstream\Jetstream;
|
||||
|
||||
class JetstreamServiceProvider extends ServiceProvider
|
||||
@@ -30,14 +27,6 @@ class JetstreamServiceProvider extends ServiceProvider
|
||||
$this->configurePermissions();
|
||||
|
||||
Jetstream::deleteUsersUsing(DeleteUser::class);
|
||||
|
||||
if (config('investbrain.self_hosted', false)) {
|
||||
|
||||
Config::set(
|
||||
'jetstream.features',
|
||||
array_keys(Arr::except(array_values(config('jetstream.features')), Features::termsAndPrivacyPolicy()))
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -60,10 +60,9 @@ return [
|
||||
*/
|
||||
|
||||
'features' => [
|
||||
Features::termsAndPrivacyPolicy(),
|
||||
! env('SELF_HOSTED', true) ? Features::termsAndPrivacyPolicy() : null,
|
||||
Features::profilePhotos(),
|
||||
Features::api(),
|
||||
// Features::teams(['invitations' => true]),
|
||||
Features::accountDeletion(),
|
||||
],
|
||||
|
||||
|
||||
@@ -67,7 +67,11 @@
|
||||
<div class="col-span-6 sm:col-span-4">
|
||||
<x-input id="email" label="{{ __('Email') }}" type="email" class="mt-1 block w-full" wire:model="state.email" error-field="email" required autocomplete="username" />
|
||||
|
||||
@if (Laravel\Fortify\Features::enabled(Laravel\Fortify\Features::emailVerification()) && ! $this->user->hasVerifiedEmail())
|
||||
@if (
|
||||
! config('investbrain.self_hosted')
|
||||
&& Laravel\Fortify\Features::enabled(Laravel\Fortify\Features::emailVerification())
|
||||
&& ! $this->user->hasVerifiedEmail()
|
||||
)
|
||||
<p class="text-sm mt-2 dark:text-white">
|
||||
{{ __('Your email address is unverified.') }}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user