summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xsummarize_time.cgi6
-rw-r--r--template/en/default/global/user-error.html.tmpl2
2 files changed, 6 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;
diff --git a/template/en/default/global/user-error.html.tmpl b/template/en/default/global/user-error.html.tmpl
index 0821fbcd3..92bc52990 100644
--- a/template/en/default/global/user-error.html.tmpl
+++ b/template/en/default/global/user-error.html.tmpl
@@ -160,6 +160,8 @@
whine reports
[% ELSIF object == "sanity_check" %]
a sanity check
+ [% ELSIF object == "timetracking_summaries" %]
+ time-tracking summary reports
[% ELSIF object == "user" %]
the user you specified
[% ELSIF object == "users" %]