panel.page.visibility

Permission to change the visibility of a page

Target Data

ui

$this->target()->page()

action

$this->target()->page()
$this->target()->visibility()

Example

<?php

// site/roles/editor.php
return [
  'name'        => 'Editor',
  'default'     => false,
  'permissions' => [
    '*'                     => true,
    'panel.page.visibility' => false
  ]
];