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

Allow group roots to reboot nodes in locked down experiments.

parent 247729aa
...@@ -1163,7 +1163,7 @@ function Do_ReloadTopology() ...@@ -1163,7 +1163,7 @@ function Do_ReloadTopology()
function Do_RebootOrReload($which) function Do_RebootOrReload($which)
{ {
global $this_user, $instance, $suexec_output; global $this_user, $instance, $suexec_output;
global $ajax_args; global $ajax_args, $TBDB_TRUST_GROUPROOT;
if (StatusSetupAjax(0)) { if (StatusSetupAjax(0)) {
return; return;
...@@ -1181,7 +1181,8 @@ function Do_RebootOrReload($which) ...@@ -1181,7 +1181,8 @@ function Do_RebootOrReload($which)
# #
if ($instance->admin_lockdown() || $instance->user_lockdown()) { if ($instance->admin_lockdown() || $instance->user_lockdown()) {
if ($this_idx != $instance->creator_idx() && !ISADMIN() && if ($this_idx != $instance->creator_idx() && !ISADMIN() &&
!$instance->Project()->IsLeader($this_user)) { $instance->Project()->UserTrust($this_user) <
$TBDB_TRUST_GROUPROOT) {
SPITAJAX_ERROR(1, "Not enough permission, ". SPITAJAX_ERROR(1, "Not enough permission, ".
"experiment is locked down"); "experiment is locked down");
return; return;
......
Supports Markdown
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