This keeps it as generic copypasta
With or without this, an unauthorized page is shown if the user has no permission
This commit is contained in:
Samuel Georges 2017-07-22 09:46:55 +10:00
parent 205f02b44a
commit 5078578a04
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ class Themes extends Controller
* Custom redirect for unauthorized request
*/
$this->bindEvent('page.beforeDisplay', function() {
if (!$this->user->hasAnyAccess($this->requiredPermissions) && $this->user->hasAccess('cms.manage_theme_options')) {
if (!$this->user->hasAnyAccess($this->requiredPermissions)) {
return Backend::redirect('cms/themeoptions/update');
}
});