aboutsummaryrefslogtreecommitdiffstats
path: root/globals.pl
diff options
context:
space:
mode:
Diffstat (limited to 'globals.pl')
-rw-r--r--globals.pl4
1 files changed, 4 insertions, 0 deletions
diff --git a/globals.pl b/globals.pl
index 2b68b2b41..abc0cbb06 100644
--- a/globals.pl
+++ b/globals.pl
@@ -1195,6 +1195,10 @@ sub SplitEnumType {
}
sub UserInGroup {
+ if ($_[1]) {
+ die "UserInGroup no longer takes a second parameter.";
+ }
+
return defined Bugzilla->user && defined Bugzilla->user->groups->{$_[0]};
}