Commit c11d5a39 authored by Leigh Stoller's avatar Leigh Stoller

Fix for mapping remote users to local users.

parent de4ab76b
......@@ -411,9 +411,10 @@ sub DoList()
foreach my $details (values(%$list)) {
my $userhrn = GeniHRN->new($details->{'user'});
my $geniuser = GeniUser->Lookup($details->{'user'}, 1);
if (defined(($geniuser))) {
if (defined($geniuser) && $geniuser->IsLocal()) {
print Dumper($geniuser);
$details->{'uid'} = $geniuser->uid();
$details->{'uid_idx'} = $geniuser->uid_idx();
$details->{'uid_idx'} = $geniuser->idx();
}
else {
$details->{'uid'} = $userhrn->id();
......@@ -450,6 +451,8 @@ sub DoList()
#
# Delete a reservation.
#
# This is not doing proper permission checks or credentials. Need to fix.
#
sub DoDelete()
{
usage()
......
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