diff options
author | mkanat%kerio.com <> | 2005-02-25 11:07:05 +0000 |
---|---|---|
committer | mkanat%kerio.com <> | 2005-02-25 11:07:05 +0000 |
commit | dedbe7d00c18c44bfe3ddd9cda8171e6ba599a89 (patch) | |
tree | 5e04ee2e2da860b55bebbcc1463222256d57197f /editusers.cgi | |
parent | Bug 282074: Software error instead of Bugzilla's "Internal Error" Message (diff) | |
download | bugzilla-dedbe7d00c18c44bfe3ddd9cda8171e6ba599a89.tar.gz bugzilla-dedbe7d00c18c44bfe3ddd9cda8171e6ba599a89.tar.bz2 bugzilla-dedbe7d00c18c44bfe3ddd9cda8171e6ba599a89.zip |
Bug 279693: Move UserCanBlessGroup() into a Bugzilla::User function
Patch By Max Kanat-Alexander <mkanat@kerio.com> r=LpSolit, a=myk
Diffstat (limited to 'editusers.cgi')
-rwxr-xr-x | editusers.cgi | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editusers.cgi b/editusers.cgi index c6b342efd..4c2a8a193 100755 --- a/editusers.cgi +++ b/editusers.cgi @@ -153,7 +153,7 @@ sub EmitFormElements ($$$$) print "<TD COLSPAN=2 ALIGN=LEFT><B>User is a member of these groups</B></TD>\n"; while (MoreSQLData()) { my ($groupid, $name, $description, $checked, $isderived, $isregexp) = FetchSQLData(); - next unless ($editall || UserCanBlessGroup($name)); + next unless ($editall || Bugzilla->user->can_bless($name)); PushGlobalSQLState(); SendSQL("SELECT user_id " . "FROM user_group_map " . @@ -726,7 +726,7 @@ if ($action eq 'update') { my $chggrp = 0; SendSQL("SELECT id, name FROM groups"); while (my ($groupid, $name) = FetchSQLData()) { - next unless ($editall || UserCanBlessGroup($name)); + next unless ($editall || Bugzilla->user->can_bless($name)); if ($::FORM{"oldgroup_$groupid"} != ($::FORM{"group_$groupid"} ? 1 : 0)) { # group membership changed PushGlobalSQLState(); |