Commit 62fbdd5a authored by Leigh Stoller's avatar Leigh Stoller

Bug fix.

parent e28da16f
......@@ -168,7 +168,9 @@ function Do_GetSSHAuthObject()
#
# XXX Need to deal with multiple members of an experiment.
#
if (!$this_user->SameUser($creator)) {
if (! ((isset($this_user) && $this_user->SameUser($creator)) ||
(isset($_COOKIE['quickvm_user']) &&
$_COOKIE['quickvm_user'] == $creator->uuid()))) {
SPITAJAX_ERROR(1, "Not allowed to ssh; only the creator");
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