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

Bug 382056: [SECURITY] Bugzilla::Webservice::Bug->get_bugs() doesn't check if…

Bug 382056: [SECURITY] Bugzilla::Webservice::Bug->get_bugs() doesn't check if the user is in the timetracking group when returning data - Patch by Fré©ric Buclin <LpSolit@gmail.com> r=mkanat a=LpSolit
parent 63e7d4ae
......@@ -70,6 +70,13 @@ sub get_bugs {
ValidateBugID($bug_id);
my $bug = new Bugzilla::Bug($bug_id);
# Timetracking fields are deleted if the user doesn't belong to
# the corresponding group.
unless (Bugzilla->user->in_group(Bugzilla->params->{'timetrackinggroup'})) {
delete $bug->{'estimated_time'};
delete $bug->{'remaining_time'};
delete $bug->{'deadline'};
}
# This is done in this fashion in order to produce a stable API.
# The internals of Bugzilla::Bug are not stable enough to just
# return them directly.
......
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