Commit b49fc53c authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Remove the permission tests I was actually intending to remove in the

last revision. Such a dope.
parent 3729e98e
......@@ -908,14 +908,9 @@ function Do_Snapshot()
return;
}
}
$this_idx = $this_user->uid_idx();
$uuid = $ajax_args["uuid"];
if ($this_idx != $instance->creator_idx() && !ISADMIN()) {
SPITAJAX_ERROR(1, "Not enough permission. Maybe Clone instead?");
return;
}
if ($instance->status() != "ready") {
SPITAJAX_ERROR(1, "Experiment is currently busy");
return;
......@@ -1214,10 +1209,6 @@ function Do_RebootOrReload($which)
}
$nodelist .= " " . escapeshellarg($node_id);
}
if ($this_idx != $instance->creator_idx() && !ISADMIN()) {
SPITAJAX_ERROR(1, "Not enough permission. Maybe Clone instead?");
return;
}
if ($instance->status() != "ready" && $instance->status() != "failed") {
SPITAJAX_ERROR(1, "Experiment is currently busy");
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