]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 201018 - editusers.cgi never calls DeriveGroup prior to changing a bug
authorbbaetz%acm.org <>
Fri, 25 Apr 2003 06:11:59 +0000 (06:11 +0000)
committerbbaetz%acm.org <>
Fri, 25 Apr 2003 06:11:59 +0000 (06:11 +0000)
patch mostly by justdave, bits by me
r=bbaetz,justdave,myk
a=justdave

checksetup.pl
editusers.cgi

index f670425999fb4b9edc10a3871d32e7abb8cb38cf..7c44eaa6807e351d8c0b6e371a7aa150b9dd2e6a 100755 (executable)
@@ -3863,12 +3863,18 @@ if ($sth->rows == 0) {
 # Support for quips approval
 AddField('quips', 'approved', 'tinyint(1) NOT NULL  DEFAULT 1');
  
-# 2002-11-XX Bug 180870 - remove manual shadowdb replication code
+# 2002-12-20 Bug 180870 - remove manual shadowdb replication code
 if (TableExists('shadowlog')) {
     print "Removing shadowlog table\n";
     $dbh->do("DROP TABLE shadowlog");
 }
 
+# 2003-04-24 - myk@mozilla.org/bbaetz@acm.org, bug 201018
+# Force all cached groups to be updated at login, due to security
+# At the next schema change, this should be moved inside that block so that the
+# update doesn't happen on every run
+$dbh->do("UPDATE profiles SET refreshed_when='1900-01-01 00:00:00'");
+
 #
 # Final checks...
 
index 4e423c2d5418135bec160a08dbea7cab4c16a37c..143e87442951066ec446da79229b54ea972958d0 100755 (executable)
@@ -785,6 +785,8 @@ if ($action eq 'update') {
                 "VALUES " .  "($thisuserid, $::userid, now(), $fieldid, " .  
                 SqlQuote(join(", ",@grpdel)) . ", " .
                 SqlQuote(join(", ",@grpadd)) . ")");
+        SendSQL("UPDATE profiles SET refreshed_when='1900-01-01 00:00:00' " .
+                "WHERE userid = $thisuserid");
     }
 
 
@@ -842,6 +844,7 @@ if ($action eq 'update') {
 
         print "Updated user's name.<BR>\n";
     }
+    DeriveGroup($thisuserid);
 
     PutTrailer($localtrailer);
     exit;