Commit f0d7c83e authored by Leigh Stoller's avatar Leigh Stoller

Fix permission denied error when guest returns to existing experiment.

parent 87c0740f
......@@ -511,6 +511,11 @@ if (!$this_user &&
if ($geniuser) {
$instance = Instance::LookupByCreator($geniuser->uuid());
if ($instance && $instance->status() != "terminating") {
# Reset this cookie so status page is happy and so we
# will stop asking.
setcookie("quickvm_user",
$geniuser->uuid(), time() + (24 * 3600 * 30),
"/", $TBAUTHDOMAIN, 0);
header("Location: status.php?uuid=" . $instance->uuid());
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