Permission to access/read a page in the Panel

Target Data


You can deny access to certain pages entirely. They will be hidden from all page lists and the user cannot access any of its features.



// site/roles/editor.php
return [
  'name'        => 'Editor',
  'default'     => false,
  'permissions' => [
    '*'               => true,
    '' => function() {
      return $this->target()->page()->template() !== 'secret';

Is something missing or incorrect? Edit this page on Github…