Rename the "limit_customer_visibility" setting to "limit_customer_access"

This commit is contained in:
Alex Tselegidis 2022-05-27 09:23:38 +02:00
parent 9b9888df47
commit 2e21b05545
31 changed files with 68 additions and 68 deletions

View file

@ -365,6 +365,6 @@ $lang['booking_link'] = 'Booking Link';
$lang['add_new_event'] = 'Add New Event'; $lang['add_new_event'] = 'Add New Event';
$lang['what_kind_of_event'] = 'What kind of event would you like to add?'; $lang['what_kind_of_event'] = 'What kind of event would you like to add?';
$lang['theme'] = 'Theme'; $lang['theme'] = 'Theme';
$lang['limit_customer_visibility'] = 'Limit Customer Visibility'; $lang['limit_customer_access'] = 'Limit Customer Access';
$lang['limit_customer_visibility_hint'] = 'If enabled, providers and secretaries will only be able to view and manage customers they have an appointment with.'; $lang['limit_customer_access_hint'] = 'If enabled, providers and secretaries will only be able to access customers they have an appointment with.';
// End // End

View file

@ -365,6 +365,6 @@ $lang['booking_link'] = 'Booking Link';
$lang['add_new_event'] = 'Add New Event'; $lang['add_new_event'] = 'Add New Event';
$lang['what_kind_of_event'] = 'What kind of event would you like to add?'; $lang['what_kind_of_event'] = 'What kind of event would you like to add?';
$lang['theme'] = 'Theme'; $lang['theme'] = 'Theme';
$lang['limit_customer_visibility'] = 'Limit Customer Visibility'; $lang['limit_customer_access'] = 'Limit Customer Access';
$lang['limit_customer_visibility_hint'] = 'If enabled, providers and secretaries will only be able to view and manage customers they have an appointment with.'; $lang['limit_customer_access_hint'] = 'If enabled, providers and secretaries will only be able to access customers they have an appointment with.';
// End // End

View file

@ -365,6 +365,6 @@ $lang['booking_link'] = 'Enllaç de reserva';
$lang['add_new_event'] = 'Afegeix un nou esdeveniment'; $lang['add_new_event'] = 'Afegeix un nou esdeveniment';
$lang['what_kind_of_event'] = 'Quin tipus d\'esdeveniment voleu afegir?'; $lang['what_kind_of_event'] = 'Quin tipus d\'esdeveniment voleu afegir?';
$lang['theme'] = 'Theme'; $lang['theme'] = 'Theme';
$lang['limit_customer_visibility'] = 'Limit Customer Visibility'; $lang['limit_customer_access'] = 'Limit Customer Access';
$lang['limit_customer_visibility_hint'] = 'If enabled, providers and secretaries will only be able to view and manage customers they have an appointment with.'; $lang['limit_customer_access_hint'] = 'If enabled, providers and secretaries will only be able to access customers they have an appointment with.';
// End // End

View file

@ -365,6 +365,6 @@ $lang['booking_link'] = 'Booking Link';
$lang['add_new_event'] = 'Add New Event'; $lang['add_new_event'] = 'Add New Event';
$lang['what_kind_of_event'] = 'What kind of event would you like to add?'; $lang['what_kind_of_event'] = 'What kind of event would you like to add?';
$lang['theme'] = 'Theme'; $lang['theme'] = 'Theme';
$lang['limit_customer_visibility'] = 'Limit Customer Visibility'; $lang['limit_customer_access'] = 'Limit Customer Access';
$lang['limit_customer_visibility_hint'] = 'If enabled, providers and secretaries will only be able to view and manage customers they have an appointment with.'; $lang['limit_customer_access_hint'] = 'If enabled, providers and secretaries will only be able to access customers they have an appointment with.';
// End // End

View file

@ -365,6 +365,6 @@ $lang['booking_link'] = 'Booking Link';
$lang['add_new_event'] = 'Add New Event'; $lang['add_new_event'] = 'Add New Event';
$lang['what_kind_of_event'] = 'What kind of event would you like to add?'; $lang['what_kind_of_event'] = 'What kind of event would you like to add?';
$lang['theme'] = 'Theme'; $lang['theme'] = 'Theme';
$lang['limit_customer_visibility'] = 'Limit Customer Visibility'; $lang['limit_customer_access'] = 'Limit Customer Access';
$lang['limit_customer_visibility_hint'] = 'If enabled, providers and secretaries will only be able to view and manage customers they have an appointment with.'; $lang['limit_customer_access_hint'] = 'If enabled, providers and secretaries will only be able to access customers they have an appointment with.';
// End // End

View file

@ -365,6 +365,6 @@ $lang['booking_link'] = 'Booking Link';
$lang['add_new_event'] = 'Add New Event'; $lang['add_new_event'] = 'Add New Event';
$lang['what_kind_of_event'] = 'What kind of event would you like to add?'; $lang['what_kind_of_event'] = 'What kind of event would you like to add?';
$lang['theme'] = 'Theme'; $lang['theme'] = 'Theme';
$lang['limit_customer_visibility'] = 'Limit Customer Visibility'; $lang['limit_customer_access'] = 'Limit Customer Access';
$lang['limit_customer_visibility_hint'] = 'If enabled, providers and secretaries will only be able to view and manage customers they have an appointment with.'; $lang['limit_customer_access_hint'] = 'If enabled, providers and secretaries will only be able to access customers they have an appointment with.';
// End // End

View file

@ -365,6 +365,6 @@ $lang['booking_link'] = 'Booking Link';
$lang['add_new_event'] = 'Add New Event'; $lang['add_new_event'] = 'Add New Event';
$lang['what_kind_of_event'] = 'What kind of event would you like to add?'; $lang['what_kind_of_event'] = 'What kind of event would you like to add?';
$lang['theme'] = 'Theme'; $lang['theme'] = 'Theme';
$lang['limit_customer_visibility'] = 'Limit Customer Visibility'; $lang['limit_customer_access'] = 'Limit Customer Access';
$lang['limit_customer_visibility_hint'] = 'If enabled, providers and secretaries will only be able to view and manage customers they have an appointment with.'; $lang['limit_customer_access_hint'] = 'If enabled, providers and secretaries will only be able to access customers they have an appointment with.';
// End // End

View file

@ -365,6 +365,6 @@ $lang['booking_link'] = 'Booking Link';
$lang['add_new_event'] = 'Add New Event'; $lang['add_new_event'] = 'Add New Event';
$lang['what_kind_of_event'] = 'What kind of event would you like to add?'; $lang['what_kind_of_event'] = 'What kind of event would you like to add?';
$lang['theme'] = 'Theme'; $lang['theme'] = 'Theme';
$lang['limit_customer_visibility'] = 'Limit Customer Visibility'; $lang['limit_customer_access'] = 'Limit Customer Access';
$lang['limit_customer_visibility_hint'] = 'If enabled, providers and secretaries will only be able to view and manage customers they have an appointment with.'; $lang['limit_customer_access_hint'] = 'If enabled, providers and secretaries will only be able to access customers they have an appointment with.';
// End // End

View file

@ -365,6 +365,6 @@ $lang['booking_link'] = 'Broneeringu link';
$lang['add_new_event'] = 'Lisa uus sündmus'; $lang['add_new_event'] = 'Lisa uus sündmus';
$lang['what_kind_of_event'] = 'Mis laadi sündmust soovid lisada?'; $lang['what_kind_of_event'] = 'Mis laadi sündmust soovid lisada?';
$lang['theme'] = 'Theme'; $lang['theme'] = 'Theme';
$lang['limit_customer_visibility'] = 'Limit Customer Visibility'; $lang['limit_customer_access'] = 'Limit Customer Access';
$lang['limit_customer_visibility_hint'] = 'If enabled, providers and secretaries will only be able to view and manage customers they have an appointment with.'; $lang['limit_customer_access_hint'] = 'If enabled, providers and secretaries will only be able to access customers they have an appointment with.';
// End // End

View file

@ -365,6 +365,6 @@ $lang['booking_link'] = 'Booking Link';
$lang['add_new_event'] = 'Add New Event'; $lang['add_new_event'] = 'Add New Event';
$lang['what_kind_of_event'] = 'What kind of event would you like to add?'; $lang['what_kind_of_event'] = 'What kind of event would you like to add?';
$lang['theme'] = 'Theme'; $lang['theme'] = 'Theme';
$lang['limit_customer_visibility'] = 'Limit Customer Visibility'; $lang['limit_customer_access'] = 'Limit Customer Access';
$lang['limit_customer_visibility_hint'] = 'If enabled, providers and secretaries will only be able to view and manage customers they have an appointment with.'; $lang['limit_customer_access_hint'] = 'If enabled, providers and secretaries will only be able to access customers they have an appointment with.';
// End // End

View file

@ -365,6 +365,6 @@ $lang['booking_link'] = 'Booking Link';
$lang['add_new_event'] = 'Add New Event'; $lang['add_new_event'] = 'Add New Event';
$lang['what_kind_of_event'] = 'What kind of event would you like to add?'; $lang['what_kind_of_event'] = 'What kind of event would you like to add?';
$lang['theme'] = 'Theme'; $lang['theme'] = 'Theme';
$lang['limit_customer_visibility'] = 'Limit Customer Visibility'; $lang['limit_customer_access'] = 'Limit Customer Access';
$lang['limit_customer_visibility_hint'] = 'If enabled, providers and secretaries will only be able to view and manage customers they have an appointment with.'; $lang['limit_customer_access_hint'] = 'If enabled, providers and secretaries will only be able to access customers they have an appointment with.';
// End // End

View file

@ -365,6 +365,6 @@ $lang['booking_link'] = 'Booking Link';
$lang['add_new_event'] = 'Add New Event'; $lang['add_new_event'] = 'Add New Event';
$lang['what_kind_of_event'] = 'What kind of event would you like to add?'; $lang['what_kind_of_event'] = 'What kind of event would you like to add?';
$lang['theme'] = 'Theme'; $lang['theme'] = 'Theme';
$lang['limit_customer_visibility'] = 'Limit Customer Visibility'; $lang['limit_customer_access'] = 'Limit Customer Access';
$lang['limit_customer_visibility_hint'] = 'If enabled, providers and secretaries will only be able to view and manage customers they have an appointment with.'; $lang['limit_customer_access_hint'] = 'If enabled, providers and secretaries will only be able to access customers they have an appointment with.';
// End // End

View file

@ -365,6 +365,6 @@ $lang['booking_link'] = 'Booking Link';
$lang['add_new_event'] = 'Add New Event'; $lang['add_new_event'] = 'Add New Event';
$lang['what_kind_of_event'] = 'What kind of event would you like to add?'; $lang['what_kind_of_event'] = 'What kind of event would you like to add?';
$lang['theme'] = 'Theme'; $lang['theme'] = 'Theme';
$lang['limit_customer_visibility'] = 'Limit Customer Visibility'; $lang['limit_customer_access'] = 'Limit Customer Access';
$lang['limit_customer_visibility_hint'] = 'If enabled, providers and secretaries will only be able to view and manage customers they have an appointment with.'; $lang['limit_customer_access_hint'] = 'If enabled, providers and secretaries will only be able to access customers they have an appointment with.';
// End // End

View file

@ -365,6 +365,6 @@ $lang['booking_link'] = 'Booking Link';
$lang['add_new_event'] = 'Add New Event'; $lang['add_new_event'] = 'Add New Event';
$lang['what_kind_of_event'] = 'What kind of event would you like to add?'; $lang['what_kind_of_event'] = 'What kind of event would you like to add?';
$lang['theme'] = 'Theme'; $lang['theme'] = 'Theme';
$lang['limit_customer_visibility'] = 'Limit Customer Visibility'; $lang['limit_customer_access'] = 'Limit Customer Access';
$lang['limit_customer_visibility_hint'] = 'If enabled, providers and secretaries will only be able to view and manage customers they have an appointment with.'; $lang['limit_customer_access_hint'] = 'If enabled, providers and secretaries will only be able to access customers they have an appointment with.';
// End // End

View file

@ -365,6 +365,6 @@ $lang['booking_link'] = 'Booking Link';
$lang['add_new_event'] = 'Add New Event'; $lang['add_new_event'] = 'Add New Event';
$lang['what_kind_of_event'] = 'What kind of event would you like to add?'; $lang['what_kind_of_event'] = 'What kind of event would you like to add?';
$lang['theme'] = 'Theme'; $lang['theme'] = 'Theme';
$lang['limit_customer_visibility'] = 'Limit Customer Visibility'; $lang['limit_customer_access'] = 'Limit Customer Access';
$lang['limit_customer_visibility_hint'] = 'If enabled, providers and secretaries will only be able to view and manage customers they have an appointment with.'; $lang['limit_customer_access_hint'] = 'If enabled, providers and secretaries will only be able to access customers they have an appointment with.';
// End // End

View file

@ -365,6 +365,6 @@ $lang['booking_link'] = 'Booking Link';
$lang['add_new_event'] = 'Add New Event'; $lang['add_new_event'] = 'Add New Event';
$lang['what_kind_of_event'] = 'What kind of event would you like to add?'; $lang['what_kind_of_event'] = 'What kind of event would you like to add?';
$lang['theme'] = 'Theme'; $lang['theme'] = 'Theme';
$lang['limit_customer_visibility'] = 'Limit Customer Visibility'; $lang['limit_customer_access'] = 'Limit Customer Access';
$lang['limit_customer_visibility_hint'] = 'If enabled, providers and secretaries will only be able to view and manage customers they have an appointment with.'; $lang['limit_customer_access_hint'] = 'If enabled, providers and secretaries will only be able to access customers they have an appointment with.';
// End // End

View file

@ -365,6 +365,6 @@ $lang['booking_link'] = 'Booking Link';
$lang['add_new_event'] = 'Add New Event'; $lang['add_new_event'] = 'Add New Event';
$lang['what_kind_of_event'] = 'What kind of event would you like to add?'; $lang['what_kind_of_event'] = 'What kind of event would you like to add?';
$lang['theme'] = 'Theme'; $lang['theme'] = 'Theme';
$lang['limit_customer_visibility'] = 'Limit Customer Visibility'; $lang['limit_customer_access'] = 'Limit Customer Access';
$lang['limit_customer_visibility_hint'] = 'If enabled, providers and secretaries will only be able to view and manage customers they have an appointment with.'; $lang['limit_customer_access_hint'] = 'If enabled, providers and secretaries will only be able to access customers they have an appointment with.';
// End // End

View file

@ -365,6 +365,6 @@ $lang['booking_link'] = 'Booking Link';
$lang['add_new_event'] = 'Add New Event'; $lang['add_new_event'] = 'Add New Event';
$lang['what_kind_of_event'] = 'What kind of event would you like to add?'; $lang['what_kind_of_event'] = 'What kind of event would you like to add?';
$lang['theme'] = 'Theme'; $lang['theme'] = 'Theme';
$lang['limit_customer_visibility'] = 'Limit Customer Visibility'; $lang['limit_customer_access'] = 'Limit Customer Access';
$lang['limit_customer_visibility_hint'] = 'If enabled, providers and secretaries will only be able to view and manage customers they have an appointment with.'; $lang['limit_customer_access_hint'] = 'If enabled, providers and secretaries will only be able to access customers they have an appointment with.';
// End // End

View file

@ -365,6 +365,6 @@ $lang['booking_link'] = 'Booking Link';
$lang['add_new_event'] = 'Add New Event'; $lang['add_new_event'] = 'Add New Event';
$lang['what_kind_of_event'] = 'What kind of event would you like to add?'; $lang['what_kind_of_event'] = 'What kind of event would you like to add?';
$lang['theme'] = 'Theme'; $lang['theme'] = 'Theme';
$lang['limit_customer_visibility'] = 'Limit Customer Visibility'; $lang['limit_customer_access'] = 'Limit Customer Access';
$lang['limit_customer_visibility_hint'] = 'If enabled, providers and secretaries will only be able to view and manage customers they have an appointment with.'; $lang['limit_customer_access_hint'] = 'If enabled, providers and secretaries will only be able to access customers they have an appointment with.';
// End // End

View file

@ -365,6 +365,6 @@ $lang['booking_link'] = 'Booking Link';
$lang['add_new_event'] = 'Add New Event'; $lang['add_new_event'] = 'Add New Event';
$lang['what_kind_of_event'] = 'What kind of event would you like to add?'; $lang['what_kind_of_event'] = 'What kind of event would you like to add?';
$lang['theme'] = 'Theme'; $lang['theme'] = 'Theme';
$lang['limit_customer_visibility'] = 'Limit Customer Visibility'; $lang['limit_customer_access'] = 'Limit Customer Access';
$lang['limit_customer_visibility_hint'] = 'If enabled, providers and secretaries will only be able to view and manage customers they have an appointment with.'; $lang['limit_customer_access_hint'] = 'If enabled, providers and secretaries will only be able to access customers they have an appointment with.';
// End // End

View file

@ -364,6 +364,6 @@ $lang['booking_link'] = 'Booking Link';
$lang['add_new_event'] = 'Add New Event'; $lang['add_new_event'] = 'Add New Event';
$lang['what_kind_of_event'] = 'What kind of event would you like to add?'; $lang['what_kind_of_event'] = 'What kind of event would you like to add?';
$lang['theme'] = 'Theme'; $lang['theme'] = 'Theme';
$lang['limit_customer_visibility'] = 'Limit Customer Visibility'; $lang['limit_customer_access'] = 'Limit Customer Access';
$lang['limit_customer_visibility_hint'] = 'If enabled, providers and secretaries will only be able to view and manage customers they have an appointment with.'; $lang['limit_customer_access_hint'] = 'If enabled, providers and secretaries will only be able to access customers they have an appointment with.';
// End // End

View file

@ -365,6 +365,6 @@ $lang['booking_link'] = 'Booking Link';
$lang['add_new_event'] = 'Add New Event'; $lang['add_new_event'] = 'Add New Event';
$lang['what_kind_of_event'] = 'What kind of event would you like to add?'; $lang['what_kind_of_event'] = 'What kind of event would you like to add?';
$lang['theme'] = 'Theme'; $lang['theme'] = 'Theme';
$lang['limit_customer_visibility'] = 'Limit Customer Visibility'; $lang['limit_customer_access'] = 'Limit Customer Access';
$lang['limit_customer_visibility_hint'] = 'If enabled, providers and secretaries will only be able to view and manage customers they have an appointment with.'; $lang['limit_customer_access_hint'] = 'If enabled, providers and secretaries will only be able to access customers they have an appointment with.';
// End // End

View file

@ -365,6 +365,6 @@ $lang['booking_link'] = 'Booking Link';
$lang['add_new_event'] = 'Add New Event'; $lang['add_new_event'] = 'Add New Event';
$lang['what_kind_of_event'] = 'What kind of event would you like to add?'; $lang['what_kind_of_event'] = 'What kind of event would you like to add?';
$lang['theme'] = 'Theme'; $lang['theme'] = 'Theme';
$lang['limit_customer_visibility'] = 'Limit Customer Visibility'; $lang['limit_customer_access'] = 'Limit Customer Access';
$lang['limit_customer_visibility_hint'] = 'If enabled, providers and secretaries will only be able to view and manage customers they have an appointment with.'; $lang['limit_customer_access_hint'] = 'If enabled, providers and secretaries will only be able to access customers they have an appointment with.';
// End // End

View file

@ -365,6 +365,6 @@ $lang['booking_link'] = 'Booking Link';
$lang['add_new_event'] = 'Add New Event'; $lang['add_new_event'] = 'Add New Event';
$lang['what_kind_of_event'] = 'What kind of event would you like to add?'; $lang['what_kind_of_event'] = 'What kind of event would you like to add?';
$lang['theme'] = 'Theme'; $lang['theme'] = 'Theme';
$lang['limit_customer_visibility'] = 'Limit Customer Visibility'; $lang['limit_customer_access'] = 'Limit Customer Access';
$lang['limit_customer_visibility_hint'] = 'If enabled, providers and secretaries will only be able to view and manage customers they have an appointment with.'; $lang['limit_customer_access_hint'] = 'If enabled, providers and secretaries will only be able to access customers they have an appointment with.';
// End // End

View file

@ -365,6 +365,6 @@ $lang['booking_link'] = 'Booking Link';
$lang['add_new_event'] = 'Add New Event'; $lang['add_new_event'] = 'Add New Event';
$lang['what_kind_of_event'] = 'What kind of event would you like to add?'; $lang['what_kind_of_event'] = 'What kind of event would you like to add?';
$lang['theme'] = 'Theme'; $lang['theme'] = 'Theme';
$lang['limit_customer_visibility'] = 'Limit Customer Visibility'; $lang['limit_customer_access'] = 'Limit Customer Access';
$lang['limit_customer_visibility_hint'] = 'If enabled, providers and secretaries will only be able to view and manage customers they have an appointment with.'; $lang['limit_customer_access_hint'] = 'If enabled, providers and secretaries will only be able to access customers they have an appointment with.';
// End // End

View file

@ -365,6 +365,6 @@ $lang['booking_link'] = 'Booking Link';
$lang['add_new_event'] = 'Add New Event'; $lang['add_new_event'] = 'Add New Event';
$lang['what_kind_of_event'] = 'What kind of event would you like to add?'; $lang['what_kind_of_event'] = 'What kind of event would you like to add?';
$lang['theme'] = 'Theme'; $lang['theme'] = 'Theme';
$lang['limit_customer_visibility'] = 'Limit Customer Visibility'; $lang['limit_customer_access'] = 'Limit Customer Access';
$lang['limit_customer_visibility_hint'] = 'If enabled, providers and secretaries will only be able to view and manage customers they have an appointment with.'; $lang['limit_customer_access_hint'] = 'If enabled, providers and secretaries will only be able to access customers they have an appointment with.';
// End // End

View file

@ -365,6 +365,6 @@ $lang['booking_link'] = 'Booking Link';
$lang['add_new_event'] = 'Add New Event'; $lang['add_new_event'] = 'Add New Event';
$lang['what_kind_of_event'] = 'What kind of event would you like to add?'; $lang['what_kind_of_event'] = 'What kind of event would you like to add?';
$lang['theme'] = 'Theme'; $lang['theme'] = 'Theme';
$lang['limit_customer_visibility'] = 'Limit Customer Visibility'; $lang['limit_customer_access'] = 'Limit Customer Access';
$lang['limit_customer_visibility_hint'] = 'If enabled, providers and secretaries will only be able to view and manage customers they have an appointment with.'; $lang['limit_customer_access_hint'] = 'If enabled, providers and secretaries will only be able to access customers they have an appointment with.';
// End // End

View file

@ -365,6 +365,6 @@ $lang['booking_link'] = 'Booking Link';
$lang['add_new_event'] = 'Add New Event'; $lang['add_new_event'] = 'Add New Event';
$lang['what_kind_of_event'] = 'What kind of event would you like to add?'; $lang['what_kind_of_event'] = 'What kind of event would you like to add?';
$lang['theme'] = 'Theme'; $lang['theme'] = 'Theme';
$lang['limit_customer_visibility'] = 'Limit Customer Visibility'; $lang['limit_customer_access'] = 'Limit Customer Access';
$lang['limit_customer_visibility_hint'] = 'If enabled, providers and secretaries will only be able to view and manage customers they have an appointment with.'; $lang['limit_customer_access_hint'] = 'If enabled, providers and secretaries will only be able to access customers they have an appointment with.';
// End // End

View file

@ -365,6 +365,6 @@ $lang['booking_link'] = 'Booking Link';
$lang['add_new_event'] = 'Add New Event'; $lang['add_new_event'] = 'Add New Event';
$lang['what_kind_of_event'] = 'What kind of event would you like to add?'; $lang['what_kind_of_event'] = 'What kind of event would you like to add?';
$lang['theme'] = 'Theme'; $lang['theme'] = 'Theme';
$lang['limit_customer_visibility'] = 'Limit Customer Visibility'; $lang['limit_customer_access'] = 'Limit Customer Access';
$lang['limit_customer_visibility_hint'] = 'If enabled, providers and secretaries will only be able to view and manage customers they have an appointment with.'; $lang['limit_customer_access_hint'] = 'If enabled, providers and secretaries will only be able to access customers they have an appointment with.';
// End // End

View file

@ -11,18 +11,18 @@
* @since v1.4.0 * @since v1.4.0
* ---------------------------------------------------------------------------- */ * ---------------------------------------------------------------------------- */
class Migration_Add_limit_customer_visibility_setting extends EA_Migration { class Migration_Add_limit_customer_access_setting extends EA_Migration {
/** /**
* Upgrade method. * Upgrade method.
*/ */
public function up() public function up()
{ {
if ( ! $this->db->get_where('settings', ['name' => 'limit_customer_visibility'])->num_rows()) if ( ! $this->db->get_where('settings', ['name' => 'limit_customer_access'])->num_rows())
{ {
$this->db->insert('settings', [ $this->db->insert('settings', [
'create_datetime' => date('Y-m-d H:i:s'), 'create_datetime' => date('Y-m-d H:i:s'),
'update_datetime' => date('Y-m-d H:i:s'), 'update_datetime' => date('Y-m-d H:i:s'),
'name' => 'limit_customer_visibility', 'name' => 'limit_customer_access',
'value' => '0' 'value' => '0'
]); ]);
} }
@ -33,9 +33,9 @@ class Migration_Add_limit_customer_visibility_setting extends EA_Migration {
*/ */
public function down() public function down()
{ {
if ($this->db->get_where('settings', ['name' => 'limit_customer_visibility'])->num_rows()) if ($this->db->get_where('settings', ['name' => 'limit_customer_access'])->num_rows())
{ {
$this->db->delete('settings', ['name' => 'limit_customer_visibility']); $this->db->delete('settings', ['name' => 'limit_customer_access']);
} }
} }
} }

View file

@ -241,16 +241,16 @@
<div class="mb-3"> <div class="mb-3">
<div class="form-check form-switch"> <div class="form-check form-switch">
<input class="form-check-input" type="checkbox" id="limit-customer-visibility" <input class="form-check-input" type="checkbox" id="limit-customer-access"
data-field="limit_customer_visibility"> data-field="limit_customer_access">
<label class="form-check-label" for="limit-customer-visibility"> <label class="form-check-label" for="limit-customer-access">
<?= lang('limit_customer_visibility') ?> <?= lang('limit_customer_access') ?>
</label> </label>
</div> </div>
<div class="form-text text-muted"> <div class="form-text text-muted">
<small> <small>
<?= lang('limit_customer_visibility_hint') ?> <?= lang('limit_customer_access_hint') ?>
</small> </small>
</div> </div>
</div> </div>