diff options
author | lpsolit%gmail.com <> | 2005-03-30 20:16:21 +0200 |
---|---|---|
committer | lpsolit%gmail.com <> | 2005-03-30 20:16:21 +0200 |
commit | 9797547f955dde63dff188a625834eb338f319fa (patch) | |
tree | 29b437c72f84aa1954512c78648dd01ed1528f56 /summarize_time.cgi | |
parent | 49951829ef77417122463d6df81e330010c0afae (diff) | |
download | bugzilla-9797547f955dde63dff188a625834eb338f319fa.tar.gz bugzilla-9797547f955dde63dff188a625834eb338f319fa.tar.xz |
Bug 286003: Direct access to summarize-time.cgi when time tracking is off generates an error - Patch by Shane H. W. Travis <shane.h.w.travis@gmail.com> r=jouni a=justdave
Diffstat (limited to 'summarize_time.cgi')
-rwxr-xr-x | summarize_time.cgi | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/summarize_time.cgi b/summarize_time.cgi index 6ea31fceb..077678c2e 100755 --- a/summarize_time.cgi +++ b/summarize_time.cgi @@ -360,8 +360,10 @@ my $cgi = Bugzilla->cgi; Bugzilla->switch_to_shadow_db(); -ThrowUserError("timetracking_access_denied") unless - UserInGroup(Param("timetrackinggroup")); +UserInGroup(Param("timetrackinggroup")) + || ThrowUserError("auth_failure", {group => "time-tracking", + action => "access", + object => "timetracking_summaries"}); my @ids = split(",", $cgi->param('id')); map { ValidateBugID($_) } @ids; |