mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-25 11:28:55 +00:00
[ticket/9807] Update existing module permissions in database
PHPBB3-9807
This commit is contained in:
parent
a27811b1d4
commit
b9afa26280
1 changed files with 8 additions and 0 deletions
|
@ -1697,6 +1697,14 @@ function change_database_data(&$no_updates, $version)
|
||||||
|
|
||||||
_add_modules($modules_to_install);
|
_add_modules($modules_to_install);
|
||||||
|
|
||||||
|
// update
|
||||||
|
$sql = 'UPDATE ' . MODULES_TABLE . '
|
||||||
|
SET module_auth = \'cfg_allow_avatar && (cfg_allow_avatar_local || cfg_allow_avatar_remote || cfg_allow_avatar_upload || cfg_allow_avatar_remote_upload)\'
|
||||||
|
WHERE module_class = \'ucp\'
|
||||||
|
AND module_basename = \'profile\'
|
||||||
|
AND module_mode = \'avatar\'';
|
||||||
|
_sql($sql, $errored, $error_ary);
|
||||||
|
|
||||||
// add Bing Bot
|
// add Bing Bot
|
||||||
$sql = 'SELECT group_id, group_colour
|
$sql = 'SELECT group_id, group_colour
|
||||||
FROM ' . GROUPS_TABLE . "
|
FROM ' . GROUPS_TABLE . "
|
||||||
|
|
Loading…
Add table
Reference in a new issue