From: gerv%gerv.net <> Date: Sat, 27 Mar 2004 18:45:30 +0000 (+0000) Subject: Bug 233962 - UserInGroup() should not accept a second parameter any longer. Patch... X-Git-Tag: bugzilla-2.18rc1~134 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ea93be21086847642f215dccacf99199b8fd8b60;p=thirdparty%2Fbugzilla.git Bug 233962 - UserInGroup() should not accept a second parameter any longer. Patch by gerv; r=bbaetz, justdave, joel; a=justdave. --- diff --git a/globals.pl b/globals.pl index 2b68b2b41e..abc0cbb06b 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]}; }