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