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
e75c4780
Commit
e75c4780
authored
Jul 16, 2007
by
mkanat%bugzilla.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 388232: Restricting a bug to a group sets reporter_accessible and cc_accessible to 0
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit
parent
11f84871
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletion
+12
-1
Bug.pm
Bugzilla/Bug.pm
+11
-0
process_bug.cgi
process_bug.cgi
+1
-1
No files found.
Bugzilla/Bug.pm
View file @
e75c4780
...
...
@@ -1753,6 +1753,17 @@ sub groups {
return
$self
->
{
'groups'
};
}
sub
groups_in
{
my
$self
=
shift
;
return
$self
->
{
'groups_in'
}
if
exists
$self
->
{
'groups_in'
};
return
[]
if
$self
->
{
'error'
};
my
$group_ids
=
Bugzilla
->
dbh
->
selectcol_arrayref
(
'SELECT group_id FROM bug_group_map WHERE bug_id = ?'
,
undef
,
$self
->
id
);
$self
->
{
'groups_in'
}
=
Bugzilla::
Group
->
new_from_list
(
$group_ids
);
return
$self
->
{
'groups_in'
};
}
sub
user
{
my
$self
=
shift
;
return
$self
->
{
'user'
}
if
exists
$self
->
{
'user'
};
...
...
process_bug.cgi
View file @
e75c4780
...
...
@@ -667,7 +667,7 @@ if (defined $cgi->param('id')) {
# on show_bug, thus it would look like the user was trying to
# uncheck them, which would then be denied by the set_ functions,
# throwing a confusing error.)
if
(
scalar
@
{
$bug
->
groups
})
{
if
(
scalar
@
{
$bug
->
groups
_in
})
{
$bug
->
set_cclist_accessible
(
$cgi
->
param
(
'cclist_accessible'
))
if
$bug
->
check_can_change_field
(
'cclist_accessible'
,
0
,
1
);
$bug
->
set_reporter_accessible
(
$cgi
->
param
(
'reporter_accessible'
))
...
...
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