Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
a71345e2
Commit
a71345e2
authored
May 18, 2017
by
Leigh B Stoller
Browse files
Allow group roots to reboot nodes in locked down experiments.
parent
247729aa
Changes
1
Hide whitespace changes
Inline
Side-by-side
www/aptui/status.ajax
View file @
a71345e2
...
...
@@ -1163,7 +1163,7 @@ function Do_ReloadTopology()
function
Do_RebootOrReload
(
$which
)
{
global
$this_user
,
$instance
,
$suexec_output
;
global
$ajax_args
;
global
$ajax_args
,
$TBDB_TRUST_GROUPROOT
;
if
(
StatusSetupAjax
(
0
))
{
return
;
...
...
@@ -1181,7 +1181,8 @@ function Do_RebootOrReload($which)
#
if
(
$instance
->
admin_lockdown
()
||
$instance
->
user_lockdown
())
{
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, "
.
"experiment is locked down"
);
return
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment