diff options
author | Marc Alexander <admin@m-a-styles.de> | 2014-02-05 19:44:40 +0100 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2014-02-06 00:25:48 +0100 |
commit | 8a96e0bc52a1f81ab6b03223cbb36710c4f77254 (patch) | |
tree | 89a82888fde38107af6c4025708b2a93c45a34c0 /phpBB/phpbb/user.php | |
parent | Merge pull request #1995 from EXreaction/ticket/11880 (diff) | |
download | phpbb-8a96e0bc52a1f81ab6b03223cbb36710c4f77254.tar.gz phpbb-8a96e0bc52a1f81ab6b03223cbb36710c4f77254.tar.bz2 phpbb-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.php | 2 |
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; |