Commit 07447323 authored by Leigh Stoller's avatar Leigh Stoller

If a user came in via the GENI api before using the portal, they will

not be in the holding project, so add them.
parent cde21422
......@@ -353,6 +353,20 @@ function Do_VerifySpeaksfor()
return;
}
}
else {
#
# Ug, if this geni user came in on the regular geni api first,
# we have a user record but they might not be a member of the
# Cloudlab holding project.
#
if ($TBMAINSITE) {
$project = Project::Lookup("CloudLab");
if (! $project->IsMember($this_user, $ignored)) {
$project->AddNewMember($this_user,
TBDB_TRUSTSTRING_LOCALROOT);
}
}
}
}
list ($loginhash, $logincrc) =
DOLOGIN_MAGIC($this_user->uid(), $this_user->uid_idx(), null, 0, 1);
......
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