Skip to content

Commit

Permalink
Merge pull request #705 from chrissawyerfan4/settings
Browse files Browse the repository at this point in the history
Don't show guest settings when guest mode is disabled
  • Loading branch information
Kovah committed Nov 1, 2023
2 parents 171a5ea + 4f14ec2 commit 8d08227
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/Http/Controllers/App/DashboardController.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function index(): View
->count();

$totalNotes = Note::byUser()
->count();
->count();

$totalTags = Tag::byUser()
->count();
Expand Down
4 changes: 3 additions & 1 deletion resources/views/app/settings/system.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

@include('app.settings.partials.system.general-settings')

@include('app.settings.partials.system.guest-settings')
@if(systemsettings('system_guest_access'))
@include('app.settings.partials.system.guest-settings')
@endif

@endsection

0 comments on commit 8d08227

Please sign in to comment.