diff options
author | gerv%gerv.net <> | 2004-03-27 19:45:30 +0100 |
---|---|---|
committer | gerv%gerv.net <> | 2004-03-27 19:45:30 +0100 |
commit | ea93be21086847642f215dccacf99199b8fd8b60 (patch) | |
tree | a9b93e5df369edc2acafd12a8440e4c857d744fb | |
parent | 38bb9a560a8478f1aa4bae331fa67b691079c797 (diff) | |
download | bugzilla-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.pl | 4 |
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]}; } |