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() ...@@ -908,14 +908,9 @@ function Do_Snapshot()
return; return;
} }
} }
$this_idx = $this_user->uid_idx(); $this_idx = $this_user->uid_idx();
$uuid = $ajax_args["uuid"]; $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") { if ($instance->status() != "ready") {
SPITAJAX_ERROR(1, "Experiment is currently busy"); SPITAJAX_ERROR(1, "Experiment is currently busy");
return; return;
...@@ -1214,10 +1209,6 @@ function Do_RebootOrReload($which) ...@@ -1214,10 +1209,6 @@ function Do_RebootOrReload($which)
} }
$nodelist .= " " . escapeshellarg($node_id); $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") { if ($instance->status() != "ready" && $instance->status() != "failed") {
SPITAJAX_ERROR(1, "Experiment is currently busy"); SPITAJAX_ERROR(1, "Experiment is currently busy");
return; 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