]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 157704: Deleting a product could potentially remove privileges from administrators.
authorjustdave%syndicomm.com <>
Wed, 12 Feb 2003 13:05:57 +0000 (13:05 +0000)
committerjustdave%syndicomm.com <>
Wed, 12 Feb 2003 13:05:57 +0000 (13:05 +0000)
r= joel, a= justdave

editproducts.cgi

index 932c9a1b388aa7668dd50bf93eec91c58ae24783..8ef01ebe15757da8de7214e214f35006b163e10c 100755 (executable)
@@ -40,6 +40,7 @@ require "globals.pl";
 sub sillyness {
     my $zz;
     $zz = $::unconfirmedstate;
+    $zz = $::superusergroupset;
 }
 
 
@@ -687,7 +688,7 @@ if ($action eq 'delete') {
             SendSQL("UPDATE profiles " .
                     "SET groupset = groupset - $bit " .
                     "WHERE (groupset & $bit) " .
-                    "AND (groupset != 9223372036854710271)");
+                    "AND (groupset != $::superusergroupset)");
             print "Users dropped from group '$group_desc'.<BR>\n";
 
             SendSQL("DELETE FROM groups " .