summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgerv%gerv.net <>2004-03-27 19:45:30 +0100
committergerv%gerv.net <>2004-03-27 19:45:30 +0100
commitea93be21086847642f215dccacf99199b8fd8b60 (patch)
treea9b93e5df369edc2acafd12a8440e4c857d744fb
parent38bb9a560a8478f1aa4bae331fa67b691079c797 (diff)
downloadbugzilla-ea93be21086847642f215dccacf99199b8fd8b60.tar.gz
bugzilla-ea93be21086847642f215dccacf99199b8fd8b60.tar.xz
Bug 233962 - UserInGroup() should not accept a second parameter any longer. Patch by gerv; r=bbaetz, justdave, joel; a=justdave.
-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]};
}