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
d14f5d4e
Commit
d14f5d4e
authored
Sep 06, 2005
by
lpsolit%gmail.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 306265: Implement User::can_see_product() - Patch by Frédéric Buclin…
Bug 306265: Implement User::can_see_product() - Patch by Frédéric Buclin <LpSolit@gmail.com> r=kiko a=justdave
parent
012dada9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
User.pm
Bugzilla/User.pm
+11
-0
No files found.
Bugzilla/User.pm
View file @
d14f5d4e
...
...
@@ -415,6 +415,12 @@ sub can_see_bug {
||
(
!
$missinggroup
)));
}
sub
can_see_product
{
my
(
$self
,
$product_name
)
=
@_
;
return
scalar
(
grep
{
$_
->
name
eq
$product_name
}
@
{
$self
->
get_selectable_products
});
}
sub
get_selectable_products
{
my
(
$self
,
$by_id
)
=
@_
;
...
...
@@ -1432,6 +1438,11 @@ Returns 1 if the specified user account exists and is visible to the user,
Determines if the user can see the specified bug.
=item C<can_see_product(product_name)>
Returns 1 if the user can access the specified product, and 0 if the user
should not be aware of the existence of the product.
=item C<derive_regexp_groups>
Bugzilla allows for group inheritance. When data about the user (or any of the
...
...
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