Commit 04607bf7 authored by Leigh B Stoller's avatar Leigh B Stoller

If a mere user is changing a reservation, leave the approval state

the way it was; note that an approved reservation cannot be shrunk,
but an unapproved reservation can shrink or grow, and we want to
keep it in the same state. This overrides the -a and -p flags.
parent 15018d6d
......@@ -563,6 +563,10 @@ if( defined( $modify_idx ) ) {
exit( 1 );
# Okay, user is shrinking a reservation, always leave that in same state.
if (!$admin) {
$approve = $res->approved() ? 1 : 0;
$res->SetStart( $starttime );
$res->SetEnd( $endtime );
$res->SetNodes( $count );
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