Skip to content

Commit

Permalink
Improve unauthorized redirection trigger case
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeTowers authored Jul 21, 2017
1 parent 151ed05 commit 205f02b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/cms/controllers/Themes.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function __construct()
* Custom redirect for unauthorized request
*/
$this->bindEvent('page.beforeDisplay', function() {
if (!$this->user->hasAnyAccess($this->requiredPermissions)) {
if (!$this->user->hasAnyAccess($this->requiredPermissions) && $this->user->hasAccess('cms.manage_theme_options')) {
return Backend::redirect('cms/themeoptions/update');
}
});
Expand Down

0 comments on commit 205f02b

Please sign in to comment.