Force Editors to only create Subpages

Is there a way to prohibit page creation for Editors but allow them to create subpages ?

So in site.php

pages: false

would do the trick if it would only apply for certain user groups …

I hope you can help me with this one :slight_smile:

~ Max

Permission haven’t been introduced for the Panel yet, so currently that is not possible via the Panel, I’m afraid. They will come as feature some day, but no ETA.

I was hoping someone already extended ./kirby/core/role.phps

protected $permissions = array(
      'panel.access'         => true,
      'panel.site.update'    => true,
      'panel.page.create'    => true,
      'panel.page.update'    => true,
      'panel.page.move'      => true,
      'panel.page.sort'      => true,
      'panel.page.hide'      => true,
      'panel.page.delete'    => true,
      'panel.file.upload'    => true,
      'panel.file.replace'   => true,
      'panel.file.update'    => true,
      'panel.file.delete'    => true,
      'panel.user.add'       => true,
      'panel.user.edit'      => true,
      'panel.user.role'      => true,
      'panel.user.delete'    => true,
    );

to include subpages. I’m afraid it is a lot of work for me to figure out how and where those $permissions are applied … maybe I’ll find the time to do that

Thanks anyway

As far as I know, @distantnative started to implement Panel permissions, but I have no idea how far he got …

Permissions are high priority for us at the moment, but we can’t promise when it will be done.

2 Likes