Skip to content
This repository was archived by the owner on Jul 24, 2023. It is now read-only.

Commit ff9ca96

Browse files
committed
Resolve users by their GUID, not SID
1 parent aa44e42 commit ff9ca96

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Resolvers/UserResolver.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,7 @@ public function __construct(ProviderInterface $provider)
2929
*/
3030
public function byId($identifier)
3131
{
32-
return $this->query()->where([
33-
$this->provider->getSchema()->objectSid() => $identifier,
34-
])->first();
32+
return $this->query()->findByGuid($identifier);
3533
}
3634

3735
/**

0 commit comments

Comments
 (0)