I created a new role (âsubadminâ) with the intent to grant almost all permission the admin has. When logged in with person@email.com, the panel is empty. It shows the sections I made, but no pages appear (âNo pages yetâ). This person does have access to Languages, Users and System and does have permissions to change (as i copied the default.yml from users).
Procedure I went through
- added the role to blueprints > users > subadmin.yml by copying the default.yml file
- changed the title to Subadmin
- as admin, assigned this role to a user (person@email.com)
When I change the role of person@email.com back to its original (editor.yml with restrictions) the pages do show up.
I have updated to new versions of Kirby, tried to replace the .yml files but the issue pertains. Ive been trying to solve it since January but no progress so far.
What is in your subadmin.yml now? Could you please post it here?
Also, please indicate your Kirby version number.
1 Like
Kirby Version: 3.10.0
Name file: subadmin.yml
title: Subadmin
columns:
- width: 1/2
fields:
street:
label: Street
type: text
zip:
label: ZIP
type: text
width: 1/4
city:
label: City
type: text
width: 3/4
country:
label: Country
type: text
- width: 1/2
fields:
website:
label: Website
type: url
fediverse:
label: Fediverse URL
type: url
icon: mastodon
placeholder: https://example.com/@username
instagram:
label: Instagram
type: text
icon: instagram
placeholder: username
permissions:
access:
account: true
panel: true
site: true
languages: false
system: false
users: true
files:
create: true
changeName: true
delete: true
read: true
replace: true
update: true
languages:
create: false
delete: false
pages:
access: true
changeSlug: true
changeStatus: true
changeTemplate: false
changeTitle: true
create: true
delete: true
list: true
move: true
duplicate: true
preview: true
read: true
sort: true
update: true
site:
changeTitle: false
update: false
user:
changeEmail: true
changeLanguage: true
changeName: true
changePassword: true
changeRole: false
delete: false
update: true
users:
changeEmail: false
changeLanguage: false
changeName: false
changePassword: false
changeRole: false
create: false
delete: false
update: false
Quirk
I had a previous role (editor.yml) that has EXACTLY the same content as above. When I copy-paste all content from subadmin.yml to editor.yml, someone with Editor role does see pages, but someone with subadmin.yml does not.
Tried solutions
I have tried different filenames, titles, changing permissions and refreshing.
I have tried deleting the file and making a new file from scratch.
Possible next solution(s)
My next try would be rebuilding site > accounts and site > users from scratch. But I donât know if via that route I could lock myself out of the Panel.
If you delete all accounts, you will have to install the Panel again by creating the first user, so no risk here. If you have many users with content, it might make sense to make a backup first.
I hope someone has found a solution.
With other projects I did not have this issue.