Commit 33f4a831 authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Wrapper to lookup local geni user.

parent 980015b9
......@@ -727,8 +727,20 @@ use GeniDB;
use GeniUser;
use GeniHRN;
use GeniCertificate;
use User;
use overload ('""' => 'Stringify');
sub Lookup($$)
{
my ($class, $uid) = @_;
my $user = User->Lookup($uid);
return undef
if (!defined($user));
return GeniUser::LocalUser->Create($user);
}
#
# Create a wrapper, with the same access names.
#
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment