Add Customer Visibility option to Settings
This commit is contained in:
@@ -136,6 +136,9 @@ class SettingsController extends Controller
|
|||||||
'env' => 'APP_USER_PERMISSIONS',
|
'env' => 'APP_USER_PERMISSIONS',
|
||||||
'env_encode' => true,
|
'env_encode' => true,
|
||||||
],
|
],
|
||||||
|
'limit_user_customer_visibility' => [
|
||||||
|
'env' => 'APP_LIMIT_USER_CUSTOMER_VISIBILITY',
|
||||||
|
],
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
break;
|
break;
|
||||||
@@ -201,6 +204,7 @@ class SettingsController extends Controller
|
|||||||
'next_ticket' => (Option::get('next_ticket') >= Conversation::max('number') + 1) ? Option::get('next_ticket') : Conversation::max('number') + 1,
|
'next_ticket' => (Option::get('next_ticket') >= Conversation::max('number') + 1) ? Option::get('next_ticket') : Conversation::max('number') + 1,
|
||||||
'custom_number' => (int)config('app.custom_number'),
|
'custom_number' => (int)config('app.custom_number'),
|
||||||
'user_permissions' => User::getGlobalUserPermissions(),
|
'user_permissions' => User::getGlobalUserPermissions(),
|
||||||
|
'limit_user_customer_visibility' => (int)config('app.limit_user_customer_visibility'),
|
||||||
'email_branding' => Option::get('email_branding'),
|
'email_branding' => Option::get('email_branding'),
|
||||||
'open_tracking' => Option::get('open_tracking'),
|
'open_tracking' => Option::get('open_tracking'),
|
||||||
'email_conv_history' => config('app.email_conv_history'),
|
'email_conv_history' => config('app.email_conv_history'),
|
||||||
|
|||||||
@@ -52,6 +52,22 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="form-group{{ $errors->has('settings[limit_user_customer_visibility]') ? ' has-error' : '' }}">
|
||||||
|
<label for="limit_user_customer_visibility_0" class="col-sm-2 control-label">{{ __('Customer Visibility') }}</label>
|
||||||
|
|
||||||
|
<div class="col-sm-6">
|
||||||
|
<p class="form-help">
|
||||||
|
{{ __('Which customers non-admin users can see.') }}
|
||||||
|
</p>
|
||||||
|
<div class="controls">
|
||||||
|
<label for="limit_user_customer_visibility_0" class="radio inline plain"><input type="radio" name="settings[limit_user_customer_visibility]" value="false" id="limit_user_customer_visibility_0" @if (!$settings['limit_user_customer_visibility'])checked="checked"@endif> {{ __('All customers') }}</label>
|
||||||
|
<label for="limit_user_customer_visibility_1" class="radio inline"><input type="radio" name="settings[limit_user_customer_visibility]" value="true" id="limit_user_customer_visibility_1" @if ($settings['limit_user_customer_visibility'])checked="checked"@endif> {{ __('Only customers from accessible mailboxes') }}</label>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
@include('partials/field_error', ['field'=>'settings.limit_user_customer_visibility'])
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="form-group{{ $errors->has('settings[locale]') ? ' has-error' : '' }}">
|
<div class="form-group{{ $errors->has('settings[locale]') ? ' has-error' : '' }}">
|
||||||
<label for="locale" class="col-sm-2 control-label">{{ __('Default Language') }}</label>
|
<label for="locale" class="col-sm-2 control-label">{{ __('Default Language') }}</label>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user