Commit f1dc414f authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 402438: Invalid deadlines can be set by unauthorized users - Patch by…

Bug 402438: Invalid deadlines can be set by unauthorized users - Patch by Fré©ric Buclin <LpSolit@gmail.com> r/a=mkanat
parent 7d90e43e
......@@ -946,7 +946,8 @@ sub _check_deadline {
# Check time-tracking permissions.
my $tt_group = Bugzilla->params->{"timetrackinggroup"};
my $current = ref $invocant ? $invocant->deadline : undef;
# deadline() returns '' instead of undef if no deadline is set.
my $current = ref $invocant ? ($invocant->deadline || undef) : undef;
return $current unless $tt_group && Bugzilla->user->in_group($tt_group);
# Validate entered deadline
......
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