All new accounts created on Gitlab now require administrator approval. If you invite any collaborators, please let Flux staff know so they can approve the accounts.

Commit 780443b9 authored by Leigh B Stoller's avatar Leigh B Stoller

Couple of little bug fixes for guest users.

parent f202575e
......@@ -212,6 +212,10 @@ my $sa_authority = GeniAuthority->Lookup($sa_certificate->urn());
if (!defined($sa_authority)) {
fatal("Could not load SA authority object");
}
# Guest users default to the APT cluster on the Mothership.
if ($MAINSITE && !$localuser) {
$default_aggregate_urn = $GUEST_URN;
}
#
# We use the normal XMLRPC route, so need a context.
......
......@@ -311,7 +311,8 @@ function Do_GetSSHAuthObject()
}
$nodeid = $ajax_args["nodeid"];
$auth = SSHAuthObject($this_user->uid(), $hostport);
$auth = SSHAuthObject(isset($this_user) ?
$this_user->uid() : $creator->uid(), $hostport);
if (!$auth) {
SPITAJAX_ERROR(1, "Could not create authentication object");
return;
......
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