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
af986f45
Commit
af986f45
authored
Jul 18, 2000
by
dave%intrec.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for bug 45586. When using 'usebuggroupsentry', prevent users from
seeing products the don't have access to on the query page.
parent
45951692
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
2 deletions
+17
-2
query.cgi
query.cgi
+17
-2
No files found.
query.cgi
View file @
af986f45
...
...
@@ -274,6 +274,21 @@ sub GenerateEmailInput {
my
$emailinput1
=
GenerateEmailInput
(
1
);
my
$emailinput2
=
GenerateEmailInput
(
2
);
# if using usebuggroups, then we don't want people to see products they don't
# have access to. remove them from the list.
@::product_list
=
();
foreach
my
$p
(
@::legal_product
)
{
if
(
Param
(
"usebuggroupsentry"
)
&&
GroupExists
(
$p
)
&&
!
UserInGroup
(
$p
))
{
# If we're using bug groups to restrict entry on products, and
# this product has a bug group, and the user is not in that
# group, we don't want to include that product in this list.
next
;
}
push
@::product_list
,
$p
;
}
# javascript
...
...
@@ -306,7 +321,7 @@ foreach $tm (@::legal_target_milestone) {
$jscript
.=
"tms['$tm'] = new Array();\n"
;
}
for
$p
(
@::
legal_produc
t
)
{
for
$p
(
@::
product_lis
t
)
{
if
(
$::components
{
$p
})
{
foreach
$c
(
@
{
$::components
{
$p
}})
{
$jscript
.=
"cpts['$c'][cpts['$c'].length] = '$p';\n"
;
...
...
@@ -602,7 +617,7 @@ print "
<td align=left valign=top>
<SELECT NAME=\"product\" MULTIPLE SIZE=5 onChange=\"selectProduct(this.form);\">
@{[make_options(\@::
legal_produc
t, $default{'product'}, $type{'product'})]}
@{[make_options(\@::
product_lis
t, $default{'product'}, $type{'product'})]}
</SELECT>
</td>
...
...
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