Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
57027d51
Commit
57027d51
authored
Sep 19, 2002
by
gerv%gerv.net
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 169561 - Speed up UserInGroup by using cached information. Patch by gerv; r=bbaetz, joel, myk.
parent
6fa5c6ec
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
14 deletions
+1
-14
globals.pl
globals.pl
+1
-14
No files found.
globals.pl
View file @
57027d51
...
...
@@ -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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment