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
aadb30fd
Commit
aadb30fd
authored
Sep 30, 2009
by
mkanat%bugzilla.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 511796: Allow groups to bless themselves
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit
parent
2594ac1a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
editgroups.cgi
editgroups.cgi
+7
-4
No files found.
editgroups.cgi
View file @
aadb30fd
...
@@ -113,16 +113,19 @@ sub get_current_and_available {
...
@@ -113,16 +113,19 @@ sub get_current_and_available {
if
!
grep
(
$_
->
id
==
$group_option
->
id
,
@visible_to_me_current
);
if
!
grep
(
$_
->
id
==
$group_option
->
id
,
@visible_to_me_current
);
}
}
# The group itself should never show up in the bless or
push
(
@bless_from_available
,
$group_option
)
# membership lists.
if
!
grep
(
$_
->
id
==
$group_option
->
id
,
@bless_from_current
);
# The group itself should never show up in the membership lists,
# and should show up in only one of the bless lists (otherwise
# you can try to allow it to bless itself twice, leading to a
# database unique constraint error).
next
if
$group_option
->
id
==
$group
->
id
;
next
if
$group_option
->
id
==
$group
->
id
;
push
(
@members_available
,
$group_option
)
push
(
@members_available
,
$group_option
)
if
!
grep
(
$_
->
id
==
$group_option
->
id
,
@members_current
);
if
!
grep
(
$_
->
id
==
$group_option
->
id
,
@members_current
);
push
(
@member_of_available
,
$group_option
)
push
(
@member_of_available
,
$group_option
)
if
!
grep
(
$_
->
id
==
$group_option
->
id
,
@member_of_current
);
if
!
grep
(
$_
->
id
==
$group_option
->
id
,
@member_of_current
);
push
(
@bless_from_available
,
$group_option
)
if
!
grep
(
$_
->
id
==
$group_option
->
id
,
@bless_from_current
);
push
(
@bless_to_available
,
$group_option
)
push
(
@bless_to_available
,
$group_option
)
if
!
grep
(
$_
->
id
==
$group_option
->
id
,
@bless_to_current
);
if
!
grep
(
$_
->
id
==
$group_option
->
id
,
@bless_to_current
);
}
}
...
...
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