Commit 4997a4a6 authored by Leigh Stoller's avatar Leigh Stoller

Allow elabman to modify shared_node experiments.

parent 59b33bf8
...@@ -205,7 +205,8 @@ my $query_result = ...@@ -205,7 +205,8 @@ my $query_result =
DBQueryFatal("select sharing_mode from virt_nodes ". DBQueryFatal("select sharing_mode from virt_nodes ".
"where pid='$pid' and eid='$eid' and ". "where pid='$pid' and eid='$eid' and ".
" sharing_mode is not null"); " sharing_mode is not null");
if ($query_result->numrows && !$this_user->IsAdmin()) { if ($query_result->numrows &&
!($this_user->IsAdmin() || $this_user->uid eq "elabman")) {
fatal("Only testbed admininstrators can set the sharing mode on nodes"); fatal("Only testbed admininstrators can set the sharing mode on nodes");
} }
......
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