Skip to content

Commit 2225ed3

Browse files
vmitchell85jasonvargaduncanmcclean
authored
[6.x] Update logged_in to use the guard from the Statamic config files (#11666)
Co-authored-by: Jason Varga <[email protected]> Co-authored-by: Duncan McClean <[email protected]>
1 parent ce8ea43 commit 2225ed3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/View/Cascade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ private function contextualVariables()
183183
'response_code' => 200,
184184

185185
// Auth
186-
'logged_in' => $loggedIn = auth()->check(),
186+
'logged_in' => $loggedIn = auth(config('statamic.users.guards.web', 'web'))->check(),
187187
'logged_out' => ! $loggedIn,
188188
'current_user' => User::current(),
189189

0 commit comments

Comments
 (0)