aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/user.php
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2014-02-05 19:44:40 +0100
committerMarc Alexander <admin@m-a-styles.de>2014-02-06 00:25:48 +0100
commit8a96e0bc52a1f81ab6b03223cbb36710c4f77254 (patch)
tree89a82888fde38107af6c4025708b2a93c45a34c0 /phpBB/phpbb/user.php
parent32bc5d72e424881109e0c86b716e8bd77e41bffc (diff)
downloadforums-8a96e0bc52a1f81ab6b03223cbb36710c4f77254.tar
forums-8a96e0bc52a1f81ab6b03223cbb36710c4f77254.tar.gz
forums-8a96e0bc52a1f81ab6b03223cbb36710c4f77254.tar.bz2
forums-8a96e0bc52a1f81ab6b03223cbb36710c4f77254.tar.xz
forums-8a96e0bc52a1f81ab6b03223cbb36710c4f77254.zip
[ticket/12167] Allow users to change style via style parameter by default
This change will enable users that don't have the a_styles permission to preview styles using the style parameter. Using this, they will be able to use extensions that are or incorporate stylechangers. PHPBB3-12167
Diffstat (limited to 'phpBB/phpbb/user.php')
-rw-r--r--phpBB/phpbb/user.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/phpbb/user.php b/phpBB/phpbb/user.php
index b2ab187a70..2a7cc602da 100644
--- a/phpBB/phpbb/user.php
+++ b/phpBB/phpbb/user.php
@@ -183,7 +183,7 @@ class user extends \phpbb\session
unset($lang_set_ext);
$style_request = request_var('style', 0);
- if ($style_request && $auth->acl_get('a_styles') && !defined('ADMIN_START'))
+ if ($style_request && (!$config['override_user_style'] || $auth->acl_get('a_styles')) && !defined('ADMIN_START'))
{
global $SID, $_EXTRA_URL;