mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
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:
parent
205f02b44a
commit
5078578a04
@ -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');
|
||||
}
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user