Skip to content
GitLab
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
b49fc53c
Commit
b49fc53c
authored
Jan 06, 2017
by
Leigh B Stoller
Browse files
Remove the permission tests I was actually intending to remove in the
last revision. Such a dope.
parent
3729e98e
Changes
1
Hide whitespace changes
Inline
Side-by-side
www/aptui/status.ajax
View file @
b49fc53c
...
...
@@ -908,14 +908,9 @@ function Do_Snapshot()
return
;
}
}
$this_idx
=
$this_user
->
uid_idx
();
$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"
)
{
SPITAJAX_ERROR
(
1
,
"Experiment is currently busy"
);
return
;
...
...
@@ -1214,10 +1209,6 @@ function Do_RebootOrReload($which)
}
$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"
)
{
SPITAJAX_ERROR
(
1
,
"Experiment is currently busy"
);
return
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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