From 83b546c1c563f3f3be5d109d4e2f3e1bdb12af1f Mon Sep 17 00:00:00 2001 From: snipe Date: Tue, 8 May 2018 01:07:15 -0700 Subject: [PATCH] Disable privacy policy link in footer if in demo mode --- resources/views/settings/general.blade.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/resources/views/settings/general.blade.php b/resources/views/settings/general.blade.php index 7c2b1997b9..b7ec747d31 100644 --- a/resources/views/settings/general.blade.php +++ b/resources/views/settings/general.blade.php @@ -274,7 +274,14 @@ {{ Form::label('privacy_policy_link', trans('admin/settings/general.privacy_policy_link')) }}
- {{ Form::text('privacy_policy_link', Input::old('privacy_policy_link', $setting->privacy_policy_link), array('class' => 'form-control')) }} + @if (config('app.lock_passwords')) + {{ Form::text('privacy_policy_link', Input::old('privacy_policy_link', $setting->privacy_policy_link), array('class' => 'form-control disabled', 'disabled' => 'disabled')) }} + @else + {{ Form::text('privacy_policy_link', Input::old('privacy_policy_link', $setting->privacy_policy_link), array('class' => 'form-control')) }} + + @endif + + {{ trans('admin/settings/general.privacy_policy_link_help') }} {!! $errors->first('privacy_policy_link', ':message') !!}