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
1710b67c
Commit
1710b67c
authored
Nov 28, 2011
by
Marc Schumann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 428490 - Display group icons for indirect memberships, too.
r/a=LpSolit
parent
7a9a9a8f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
24 deletions
+1
-24
User.pm
Bugzilla/User.pm
+0
-23
comments.html.tmpl
template/en/default/bug/comments.html.tmpl
+1
-1
No files found.
Bugzilla/User.pm
View file @
1710b67c
...
...
@@ -1143,24 +1143,6 @@ sub can_set_flag {
||
$self
->
in_group_id
(
$flag_type
->
grant_group_id
))
?
1
:
0
;
}
sub
direct_group_membership
{
my
$self
=
shift
;
my
$dbh
=
Bugzilla
->
dbh
;
if
(
!
$self
->
{
'direct_group_membership'
})
{
my
$gid
=
$dbh
->
selectcol_arrayref
(
'SELECT id
FROM groups
INNER JOIN user_group_map
ON groups.id = user_group_map.group_id
WHERE user_id = ?
AND isbless = 0'
,
undef
,
$self
->
id
);
$self
->
{
'direct_group_membership'
}
=
Bugzilla::
Group
->
new_from_list
(
$gid
);
}
return
$self
->
{
'direct_group_membership'
};
}
# visible_groups_inherited returns a reference to a list of all the groups
# whose members are visible to this user.
sub
visible_groups_inherited
{
...
...
@@ -2456,11 +2438,6 @@ Returns a reference to an array of users. The array is populated with hashrefs
containing the login, identity and visibility. Users that are not visible to this
user will have 'visible' set to zero.
=item C<direct_group_membership>
Returns a reference to an array of group objects. Groups the user belong to
by group inheritance are excluded from the list.
=item C<visible_groups_inherited>
Returns a list of all groups whose members should be visible to this user.
...
...
template/en/default/bug/comments.html.tmpl
View file @
1710b67c
...
...
@@ -186,7 +186,7 @@
</span>
<span class="bz_comment_user_images">
[% FOREACH group = comment.author.
direct_group_membership
%]
[% FOREACH group = comment.author.
groups
%]
[% NEXT UNLESS group.icon_url %]
<img src="[% group.icon_url FILTER html %]"
alt="[% group.name FILTER html %]"
...
...
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