Rollback 205f02b44ad3d7b43e370b430b9cb8fc570ea392

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

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');
}
});