Commit e2ca01b7 authored by Leigh Stoller's avatar Leigh Stoller

Minor permission fix.

parent 74b95f90
......@@ -219,7 +219,7 @@ function Do_TerminateInstance()
if (StatusSetupAjax(0)) {
return;
}
if (!$instance->CanTerminate($this_user)) {
if (!(ISADMIN() || $instance->CanTerminate($this_user))) {
SPITAJAX_ERROR(1, "Not enough permission to terminate");
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