diff options
-rw-r--r-- | globals.pl | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/globals.pl b/globals.pl index 29582e153..3edcab460 100644 --- a/globals.pl +++ b/globals.pl @@ -1186,21 +1186,8 @@ sub SqlQuote { return "'$str'"; } - - sub UserInGroup { - my ($groupname) = (@_); - if ($::usergroupset eq "0") { - return 0; - } - PushGlobalSQLState(); - SendSQL("select (bit & $::usergroupset) != 0 from groups where name = " . SqlQuote($groupname)); - my $bit = FetchOneColumn(); - PopGlobalSQLState(); - if ($bit) { - return 1; - } - return 0; + return $::vars->{'user'}{'groups'}{$_[0]}; } sub BugInGroup { |