From: dave%intrec.com <> Date: Thu, 20 Jul 2000 08:31:10 +0000 (+0000) Subject: Fix for bug 31336 (separate bug groups from access groups in user editor) X-Git-Tag: bugzilla-2.12~227 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=49e0af3d138c3087c91b9c2aa61b21b1edba9d4f;p=thirdparty%2Fbugzilla.git Fix for bug 31336 (separate bug groups from access groups in user editor) --- diff --git a/editusers.cgi b/editusers.cgi index e8fdd62c13..7ed8e169df 100755 --- a/editusers.cgi +++ b/editusers.cgi @@ -19,7 +19,7 @@ # Rights Reserved. # # Contributor(s): Holger Schurig -# +# Dave Miller # # Direct any questions on this source code to # @@ -139,21 +139,56 @@ sub EmitFormElements ($$$$$$$) SendSQL("SELECT bit,name,description,bit & $groupset != 0, " . " bit & $blessgroupset " . "FROM groups " . - "WHERE bit & $opblessgroupset != 0 " . + "WHERE bit & $opblessgroupset != 0 AND isbuggroup " . "ORDER BY name"); + print "Group Access:"; + my $curgrouptype = 1; + if (MoreSQLData()) { + if ($editall) { + print "\n"; + print "\n\n"; + } + print "\n"; + } while (MoreSQLData()) { my ($bit,$name,$description,$checked,$blchecked) = FetchSQLData(); print "\n"; - print " \n"; + if ($editall) { + $blchecked = ($blchecked) ? "CHECKED" : ""; + print ""; + } $checked = ($checked) ? "CHECKED" : ""; - print " \n"; + print ""; + print "\n"; + } + print "
Can turn this bit on for other users
|User is a member of these groups
", ucfirst($name), ": $description" . ucfirst($name) . ": $description
\n"; + + SendSQL("SELECT bit,name,description,bit & $groupset != 0, " . + " bit & $blessgroupset " . + "FROM groups " . + "WHERE bit & $opblessgroupset != 0 AND !isbuggroup " . + "ORDER BY name"); + print "Privileges:"; + my $curgrouptype = 1; + if (MoreSQLData()) { if ($editall) { - print "\n"; - print ""; - $blchecked = ($blchecked) ? "CHECKED" : ""; - print "\n"; + print "\n"; + print "\n\n"; } + print "\n"; + } + while (MoreSQLData()) { + my ($bit,$name,$description,$checked,$blchecked) = FetchSQLData(); + print "\n"; + if ($editall) { + $blchecked = ($blchecked) ? "CHECKED" : ""; + print ""; + } + $checked = ($checked) ? "CHECKED" : ""; + print ""; + print "\n"; } + print "
Can turn this bit on for other usersCan turn this bit on for other users
|User has these priveleges
" . ucfirst($name) . ": $description
\n"; }