From 547bf5086682f65287551984bfc9ce5e1b928290 Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Wed, 27 Jun 2007 15:46:22 +0000 Subject: [PATCH] reset permissions within the update process (also on re-runs of the updater due to it being outside of the version code). git-svn-id: file:///svn/phpbb/trunk@7802 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/install/database_update.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/phpBB/install/database_update.php b/phpBB/install/database_update.php index 56327f3a8c..f8222956e7 100644 --- a/phpBB/install/database_update.php +++ b/phpBB/install/database_update.php @@ -647,6 +647,10 @@ $sql = "UPDATE " . CONFIG_TABLE . " WHERE config_name = 'version'"; _sql($sql, $errored, $error_ary); +// Reset permissions +$sql = 'UPDATE ' . USERS_TABLE . " + SET user_permissions = ''"; +_sql($sql, $errored, $error_ary); /* Optimize/vacuum analyze the tables where appropriate // this should be done for each version in future along with