panel.access

Permission to access the Panel

By setting panel.access to false, you can define roles which can't login to the Panel at all. This is useful if you need frontend user roles which can do various things on your site based on their logged in state, but are not able to edit anything in the Panel.

Example

<?php

// site/roles/frontend.php
return [
  'name'        => 'Frontend User',
  'default'     => false,
  'permissions' => [
    '*'            => true,
    'panel.access' => false
  ]
];

An even more strict way to write this is to set a wildcard for all Panel options:

<?php

// site/roles/frontend.php
return [
  'name'        => 'Frontend User',
  'default'     => false,
  'permissions' => [
    'panel.*' => false
  ]
];

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