Hello. Using a clean install of starterkit (Kirby 2.5.8), I create a custom user role that allows a user to only edit a specific content page. Panel allows and saves edits to the page but displays this pop up message (some of the path was removed for privacy) when I click Save:
You are not allowed to do this in file: …/starterkit/panel/app/src/panel/event.php on line: 95
The custom role is defined below. In this starterkit example, The role should allow updating only the Project A page content.
<?php
// site/roles/project-editor.php
return [
'name' => 'Project A Editor',
'default' => false,
'permissions' => [
'*' => true,
'panel.site.update' => false,
'panel.page.visibility' => false,
'panel.access.options' => false,
'panel.page.delete' => false,
'panel.page.create' => false,
'panel.page.url' => false,
'panel.widget.site' => false,
'panel.user.read' => false,
'panel.user.create' => false,
'panel.page.update' => function() {
return $this->target()->page()->uid() == 'project-a';
}
]
];