Override User Blueprint in Plugin

Hi Community!

I was successfully able to override page blueprints based on the role by following this guide here:

BUT it doesn’t work when I try to override a user blueprint:

kirby::plugin('cookbook/role-blueprints', [
    'blueprints' => [
        'pages/test' => $dirtest, // path to yaml --> WORKS
        'users/editor' => $diruser // path to yaml --> DOESN'T WORK
    ]
]);

When I do it like in the example, all users are displayed as “nobody”, because kirby can’t read the role anymore. Am I missing something? Is the path wrong or doesn’t it work for roles at all?

That should work, what does $diruser point to and what’s inside that file? Maybe you have an error somewhere.