Skip to content

Commit 053d9af

Browse files
committedDec 13, 2023
Added new config keys
1 parent 445f3ec commit 053d9af

File tree

4 files changed

+14
-0
lines changed

4 files changed

+14
-0
lines changed
 

‎.env

+3
Original file line numberDiff line numberDiff line change
@@ -132,3 +132,6 @@ ALLOW_USER_IMPORT=true
132132
MANUAL_USER_VERIFICATION=true
133133

134134
ENABLE_REPORT_ICON=false
135+
136+
ENABLE_ADMIN_BAR=true
137+
ENABLE_ADMIN_BAR_USERS=false

‎resources/lang/en/messages.php

+2
Original file line numberDiff line numberDiff line change
@@ -695,6 +695,8 @@
695695
'FORCE_HTTPS.description' => 'Makes all links utilize HTTPS by default. It is advised to enable this option if you are using a reverse proxy.',
696696
'ALLOW_CUSTOM_CODE_IN_THEMES.title' => 'Allow custom code in themes',
697697
'ALLOW_CUSTOM_CODE_IN_THEMES.description' => 'Allows use of custom code in themes. If you use themes from unknown sources, <br>this may pose a security risk.',
698+
'ENABLE_ADMIN_BAR_USERS.title' => 'Enable Admin Bar for all users',
699+
'ENABLE_ADMIN_BAR_USERS.description' => 'If enabled users, all authenticated users will have an Admin Bar displayed on their links pages.',
698700
'ENABLE_THEME_UPDATER.title' => 'Enable Theme Updater',
699701
'ENABLE_THEME_UPDATER.description' => 'Determines if the theme updater should be active.',
700702
'ENABLE_SOCIAL_LOGIN.title' => 'Enable social login',

‎resources/views/components/config/config.blade.php

+3
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,9 @@ function text($key){
294294
{{toggle('ALLOW_CUSTOM_BACKGROUNDS')}}
295295

296296

297+
{{toggle('ENABLE_ADMIN_BAR_USERS')}}
298+
299+
297300
<a name="Security"><h2 class="ch2">{{__('messages.Security')}}</h2></a>
298301

299302

‎resources/views/components/finishing.blade.php

+6
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,12 @@
6363
if(EnvEditor::keyExists('ENABLE_REPORT_ICON')){ /* Do nothing if key already exists */
6464
} else {EnvEditor::addKey('ENABLE_REPORT_ICON', 'false');}
6565
66+
if(EnvEditor::keyExists('ENABLE_ADMIN_BAR')){ /* Do nothing if key already exists */
67+
} else {EnvEditor::addKey('ENABLE_ADMIN_BAR', 'true');}
68+
69+
if(EnvEditor::keyExists('ENABLE_ADMIN_BAR_USERS')){ /* Do nothing if key already exists */
70+
} else {EnvEditor::addKey('ENABLE_ADMIN_BAR_USERS', 'false');}
71+
6672
if(EnvEditor::keyExists('ADMIN_EMAIL')){} else
6773
{if(Auth::user()->id == 1){EnvEditor::addKey('ADMIN_EMAIL', App\Models\User::find(1)->email);}
6874
else{EnvEditor::addKey('ADMIN_EMAIL', '');}}

0 commit comments

Comments
 (0)