Standalone - Drop extra lookup
authorTim Otten <totten@civicrm.org>
Fri, 30 Jun 2023 18:57:21 +0000 (11:57 -0700)
committerTim Otten <totten@civicrm.org>
Fri, 30 Jun 2023 18:58:36 +0000 (11:58 -0700)
ext/standaloneusers/Civi/Standalone/Security.php

index f851b5f91616ebd34f2cd43da4a130a28cefad63..87e71473ee2e51555134b14dc4f1633a4deef807 100644 (file)
@@ -227,7 +227,7 @@ class Security {
   public function loginAuthenticatedUserRecord(array $user, bool $withSession) {
     global $loggedInUserId, $loggedInUser;
     $loggedInUserId = $user['id'];
-    $loggedInUser = \Civi\Standalone\Security::singleton()->loadUserByID($user['id']);
+    $loggedInUser = $user;
 
     if ($withSession) {
       $session = \CRM_Core_Session::singleton();