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
7c4b8b32
Commit
7c4b8b32
authored
May 22, 2002
by
bbaetz%student.usyd.edu.au
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 144565 - describecomponents.cgi shows wrong components when user has
access to only one product Bug 145113 - describecomponents doesn't call quietly_check_login() r=justdave, gerv
parent
f3b6e880
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
describecomponents.cgi
describecomponents.cgi
+6
-4
No files found.
describecomponents.cgi
View file @
7c4b8b32
...
...
@@ -36,13 +36,15 @@ require "CGI.pl";
ConnectToDatabase
();
GetVersionTable
();
quietly_check_login
();
if
(
!
defined
$::FORM
{
'product'
})
{
# Reference to a subset of %::proddesc, which the user is allowed to see
my
%
products
;
if
(
Param
(
"usebuggroups"
))
{
# OK, now only add products the user can see
confirm_login
();
confirm_login
()
unless
$::userid
;
foreach
my
$p
(
@::legal_product
)
{
if
(
!
GroupExists
(
$p
)
||
UserInGroup
(
$p
))
{
$products
{
$p
}
=
$::proddesc
{
$p
};
...
...
@@ -72,7 +74,7 @@ if (!defined $::FORM{'product'}) {
exit
;
}
$::FORM
{
'product'
}
=
(
keys
%
::
proddesc
)[
0
];
$::FORM
{
'product'
}
=
(
keys
%
products
)[
0
];
}
my
$product
=
$::FORM
{
'product'
};
...
...
@@ -88,8 +90,8 @@ grep($product eq $_ , @::legal_product)
&&
exit
;
# Make sure the user is authorized to access this product.
if
(
Param
(
"usebuggroups"
)
&&
GroupExists
(
$product
)
&&
!
$::userid
)
{
confirm_login
();
if
(
Param
(
"usebuggroups"
)
&&
GroupExists
(
$product
))
{
confirm_login
()
unless
$::userid
;
UserInGroup
(
$product
)
||
DisplayError
(
"You are not authorized to access that product."
)
&&
exit
;
...
...
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