We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ff9324 commit 3bc84a3Copy full SHA for 3bc84a3
src/View/Cascade.php
@@ -173,6 +173,8 @@ protected function hydrateContent()
173
174
private function contextualVariables()
175
{
176
+ $guard = config('statamic.users.guards.web', 'web');
177
+
178
return [
179
// Constants
180
'environment' => app()->environment(),
@@ -183,7 +185,7 @@ private function contextualVariables()
183
185
'response_code' => 200,
184
186
187
// Auth
- 'logged_in' => $loggedIn = auth()->check(),
188
+ 'logged_in' => $loggedIn = auth()->guard($guard)->check(),
189
'logged_out' => ! $loggedIn,
190
'current_user' => User::current(),
191
0 commit comments