Panel is empty when I create new roles

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

  1. added the role to blueprints > users > subadmin.yml by copying the default.yml file
  2. changed the title to Subadmin
  3. 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.

  1. I deleted all accounts
  2. emptied the users .yml files
  3. Install panel again (made myself Admin)
  4. create new users (Managing users | Kirby CMS)
  5. create admin.yml (with no stated permissions) > admin pages panel shows
  6. create editor.yml (with all permissions to true Permissions | Kirby CMS) > admin pages panel shows
  7. create reviewer.yml role (with all permissions like point 7.) > reviewer pages panel is empty

Other quirks:

  • When at 6. I create anything else than editor.yml, that pages panel becomes empty (even if the .yml file is exactly the same). So reviewer.yml, subadmin,yml or blabla.yml > respective pages panel is empty
  • when after creating editor.yml i create anything else (reviewer.yml, subadmin,yml or blabla.yml) > respective pages panel is empty

Other tests:

  • rebuilding media folder
  • empty cache or open in private browser
  • adding biographical fields to each role (name, address, email). This does show up “Your account” but the respective pages panel remains empty. So this might mean that the .yml is read
  • added a default.yml
  • deleted the roles and users folder, and rebuilt it.