aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/install/database_update.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2012-12-06 16:33:12 +0100
committerJoas Schilling <nickvergessen@gmx.de>2012-12-06 16:33:12 +0100
commit2f490293e4b8d08d6c1008ef5ea324ae259d9993 (patch)
treed250c86a60bafc806fdc07d45b0bd18ffca3bd9e /phpBB/install/database_update.php
parent4103c99a8676653a868014a6f58a76e8986bd5ed (diff)
downloadforums-2f490293e4b8d08d6c1008ef5ea324ae259d9993.tar
forums-2f490293e4b8d08d6c1008ef5ea324ae259d9993.tar.gz
forums-2f490293e4b8d08d6c1008ef5ea324ae259d9993.tar.bz2
forums-2f490293e4b8d08d6c1008ef5ea324ae259d9993.tar.xz
forums-2f490293e4b8d08d6c1008ef5ea324ae259d9993.zip
[ticket/10679] Use module_auth to limit access to the module
PHPBB3-10679
Diffstat (limited to 'phpBB/install/database_update.php')
-rw-r--r--phpBB/install/database_update.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/phpBB/install/database_update.php b/phpBB/install/database_update.php
index f0a16844e9..95fd1ca2c2 100644
--- a/phpBB/install/database_update.php
+++ b/phpBB/install/database_update.php
@@ -2830,6 +2830,14 @@ function change_database_data(&$no_updates, $version)
$auth_admin->acl_clear_prefetch();
}
+ // Update the auth setting for the module
+ $sql = 'UPDATE ' . MODULES_TABLE . "
+ SET module_auth = 'acl_u_chgprofileinfo'
+ WHERE module_class = 'ucp'
+ AND module_basename = 'profile'
+ AND module_mode = 'profile_info'";
+ _sql($sql, $errored, $error_ary);
+
$no_updates = false;
break;