aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/install/database_update.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2007-06-27 15:46:22 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2007-06-27 15:46:22 +0000
commit547bf5086682f65287551984bfc9ce5e1b928290 (patch)
tree9296a6ea0bef8c842f6b7e065e79ad52cb81dfc6 /phpBB/install/database_update.php
parent3092624b9b8a5305199ed4f4e10ef76a9f89abf9 (diff)
downloadforums-547bf5086682f65287551984bfc9ce5e1b928290.tar
forums-547bf5086682f65287551984bfc9ce5e1b928290.tar.gz
forums-547bf5086682f65287551984bfc9ce5e1b928290.tar.bz2
forums-547bf5086682f65287551984bfc9ce5e1b928290.tar.xz
forums-547bf5086682f65287551984bfc9ce5e1b928290.zip
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
Diffstat (limited to 'phpBB/install/database_update.php')
-rw-r--r--phpBB/install/database_update.php4
1 files changed, 4 insertions, 0 deletions
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