switch to hide user menu

This commit is contained in:
HB9HIL
2024-06-26 00:46:25 +02:00
parent 7207538eb2
commit 24f11b466d
3 changed files with 15 additions and 2 deletions

View File

@@ -728,8 +728,12 @@ $config['disable_oqrs'] = false;
| Example: Special Callsign: DL250CDF
| Operator: DF2TG
|
| It is recommend to enable also "Disable Syncing to 3rd party-Services at UI"
| More Information about this feature and how to use it, you can find here: TODO add link to Wiki
|
*/
$config['special_callsign'] = false;
$config['special_callsign'] = false;
// hides the usermenu; takes action only if "special_callsign" is true
$config['sc_hide_usermenu'] = true;

View File

@@ -355,7 +355,12 @@
<a class="nav-link dropdown-toggle" data-bs-toggle="dropdown" href="#"><i class="fas fa-user"></i> <?php echo $this->session->userdata('user_callsign'); ?></a>
<ul class="dropdown-menu dropdown-menu-right header-dropdown">
<li><a class="dropdown-item" href="<?php echo site_url('user/edit') . "/" . $this->session->userdata('user_id'); ?>" title="Account"><i class="fas fa-user"></i> <?= __("Account"); ?></a></li>
<?php
if (!$this->config->item('special_callsign') ||
$this->session->userdata('user_type') == '99' ||
($this->config->item('special_callsign') && !$this->config->item('sc_hide_usermenu'))) { ?>
<li><a class="dropdown-item" href="<?php echo site_url('user/edit') . "/" . $this->session->userdata('user_id'); ?>" title="Account"><i class="fas fa-user"></i> <?= __("Account"); ?></a></li>
<?php } ?>
<?php
$quickswitch_enabled = ($this->user_options_model->get_options('header_menu', array('option_name' => 'locations_quickswitch'))->row()->option_value ?? 'false');
if ($quickswitch_enabled != 'true') {

View File

@@ -728,8 +728,12 @@ $config['disable_oqrs'] = false;
| Example: Special Callsign: DL250CDF
| Operator: DF2TG
|
| It is recommend to enable also "Disable Syncing to 3rd party-Services at UI"
| More Information about this feature and how to use it, you can find here: TODO add link to Wiki
|
*/
$config['special_callsign'] = false;
// hides the usermenu; takes action only if "special_callsign" is true
$config['sc_hide_usermenu'] = true;