Hello there,
i am developing a kirby template for a agency. We want to give the client a restricted panelacess. So we want some fieldsto be hidden for their role. I created a new role and in the templates/plugins index.php i did this:
<?php
if(kirby()->user() && kirby()->user()->role()->name() == 'client') {
$sitedir = '/blueprints/client/site.yml';
} else {
$sitedir = '/blueprints/site.yml';
}
Kirby::plugin('khepri-design/khepri-gusto', [
'blueprints' => [
'site' => __DIR__ . $sitedir,
. . .
But doing it like this kicks me back to the hompage after login in.
I didn’t find a working solution for this case.
Any help?
greetings