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
e4fe75cb
Commit
e4fe75cb
authored
Aug 04, 2017
by
Gary Wong
Browse files
Do not allow unprivileged users to expand approved reservations.
Closes
#323
.
parent
4323860c
Changes
1
Hide whitespace changes
Inline
Side-by-side
utils/reserve.in
View file @
e4fe75cb
...
...
@@ -471,6 +471,14 @@ my $uid_idx = $target_user->uid_idx();
my
$res
;
if
(
defined
(
$modify_idx
)
)
{
$res
=
Reservation
->
Lookup
(
$modify_idx
);
if
(
!
$admin
&&
$res
->
approved
()
&&
(
$starttime
<
$res
->
start
||
$endtime
>
$res
->
end
||
$count
>
$res
->
nodes
)
)
{
print
STDERR
"
This reservation has already been approved; you
\n
";
print
STDERR
"
may no longer expand it.
\n
";
exit
(
1
);
}
$res
->
SetStart
(
$starttime
);
$res
->
SetEnd
(
$endtime
);
$res
->
SetNodes
(
$count
);
...
...
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