From 49e0af3d138c3087c91b9c2aa61b21b1edba9d4f Mon Sep 17 00:00:00 2001 From: "dave%intrec.com" <> Date: Thu, 20 Jul 2000 08:31:10 +0000 Subject: Fix for bug 31336 (separate bug groups from access groups in user editor) --- editusers.cgi | 51 +++++++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 43 insertions(+), 8 deletions(-) (limited to 'editusers.cgi') diff --git a/editusers.cgi b/editusers.cgi index e8fdd62c1..7ed8e169d 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"; } -- cgit v1.2.3-24-g4f1b