Skip to content

Conversation

marc1706
Copy link
Member

@marc1706 marc1706 commented Feb 5, 2014

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.

Ticket: http://tracker.phpbb.com/browse/PHPBB3-12167

@@ -183,7 +183,7 @@ function setup($lang_set = false, $style_id = false)
unset($lang_set_ext);

$style_request = request_var('style', 0);
if ($style_request && $auth->acl_get('a_styles') && !defined('ADMIN_START'))
if ($style_request && ($auth->acl_get('a_styles') || !$config['override_user_style']) && !defined('ADMIN_START'))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Swap the arguments to ||

…ault

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
EXreaction added a commit that referenced this pull request Feb 18, 2014
[ticket/12167] Allow users to change style via style parameter by default
@EXreaction EXreaction merged commit 5fc29e0 into phpbb:develop Feb 18, 2014
@marc1706 marc1706 deleted the ticket/12167 branch January 23, 2015 23:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants