changed naming of property

This commit is contained in:
Tobias Kolzer
2024-01-31 15:53:18 +01:00
committed by knom
parent f7de56b7a7
commit c08b0bfe39
2 changed files with 3 additions and 3 deletions

View File

@@ -89,9 +89,9 @@ class AppServiceProvider extends ServiceProvider
$view->with('allusers', $allusers);
$view->with('current_user', $current_user);
if (config('app.auth_roles_enable')){
$view->with('enable_config_buttons', in_array(config('app.auth_roles_admin'),explode(config('app.auth_roles_delimiter'), $_SERVER[config('app.auth_roles_http_header')])));
$view->with('enable_auth_admin_controles', in_array(config('app.auth_roles_admin'),explode(config('app.auth_roles_delimiter'), $_SERVER[config('app.auth_roles_http_header')])));
} else {
$view->with('enable_config_buttons', true);
$view->with('enable_auth_admin_controles', true);
}
});

View File

@@ -94,7 +94,7 @@
</div>
@endif
@yield('content')
@if($enable_config_buttons)
@if($enable_auth_admin_controles)
<div id="config-buttons">
@if(Route::is('dash') || Route::is('tags.show'))
<a id="config-button" class="config" href=""><i class="fas fa-exchange"></i><div class="tooltip left">{{ __('app.dashboard.reorder') }}</div></a>