I need to display a completely different panel UI based on user role. If we restrict a user’s permissions to do certain actions, it makes sense to give them a different UI to do their job too.
There should be a roles
setting for blueprint tabs. Then, you’ll be able to do this in site.yml
, for example:
title: Site
tabs:
adminMain:
roles:
- admin
fields:
...
editorMain:
roles:
- editor
fields:
...
…then, admins see the admin tab, while editors see the editor tab. If you want a tab to be visible by all roles, you just omit the roles
setting.
Duplicate of: https://kirby.nolt.io/12
Merged it to keep the votes.