summaryrefslogtreecommitdiffstats
path: root/chart.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'chart.cgi')
-rwxr-xr-xchart.cgi7
1 files changed, 4 insertions, 3 deletions
diff --git a/chart.cgi b/chart.cgi
index 4bab17701..8b0d3971e 100755
--- a/chart.cgi
+++ b/chart.cgi
@@ -84,9 +84,10 @@ if ($action eq "search") {
Bugzilla->login(LOGIN_REQUIRED);
-UserInGroup(Param("chartgroup"))
- || ThrowUserError("authorization_failure",
- {action => "use this feature"});
+UserInGroup(Param("chartgroup"))
+ || ThrowUserError("auth_failure", {group => Param("chartgroup"),
+ action => "use",
+ object => "charts"});
# Only admins may create public queries
UserInGroup('admin') || $cgi->delete('public');