Commit a5ed27d0 authored by Leigh B Stoller's avatar Leigh B Stoller

Watch for local project membership, treat as vetted user.

parent 2eb324bf
......@@ -135,6 +135,22 @@ if ($dosshkeys) {
if ($doprojects) {
# If user is a member of a local project, then we can skip this
# check, we have vetted them ourselves.
my @projects;
if ($target_user->ProjectMembershipList(\@projects)) {
fatal("Error getting local project list");
# XXX All nonlocal cloudlab users are a member of the holding project,
# but that does not count as project membership.
if (@projects > 1) {
print "Local membership: @projects\n";
$target_user->Update({"webonly" => 0})
if (!$impotent);
my @geniprojects = ProjectMembership();
if (@geniprojects) {
print "Portal membership: @geniprojects\n";
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