Skip to content

Commit ed933b4

Browse files
authored
Allow UserPreferences to be interacted without a logged in user
Winter\Storm\Auth\Models\Preference->get() allows for no user context to be present
1 parent 09aad65 commit ed933b4

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

modules/backend/models/UserPreference.php

-3
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,6 @@ class UserPreference extends PreferencesBase
2929
public function resolveUser($user)
3030
{
3131
$user = BackendAuth::getUser();
32-
if (!$user) {
33-
throw new SystemException(trans('backend::lang.user.preferences.not_authenticated'));
34-
}
3532

3633
return $user;
3734
}

0 commit comments

Comments
 (0)