# Restricted users should only be able to create and edit certain pages

**URL:** <https://forum.getkirby.com/t/restricted-users-should-only-be-able-to-create-and-edit-certain-pages/30991>\
**Category:** Questions\
**Created:** [March 3, 2024, 4:55pm UTC](https://forum.getkirby.com/t/restricted-users-should-only-be-able-to-create-and-edit-certain-pages/30991 "2024-03-03T16:55:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ShibaInu](https://avatars.discourse-cdn.com/v4/letter/s/bc8723/32.png) [@ShibaInu](https://forum.getkirby.com/u/ShibaInu)\
**Post date:** [March 3, 2024, 4:55pm UTC](https://forum.getkirby.com/t/restricted-users-should-only-be-able-to-create-and-edit-certain-pages/30991/1 "2024-03-03T16:55:08Z")

</div>

Hello,

There should be two different user types in my panel. An admin who is allowed to do everything and an editor who should only create and edit certain pages.

I have defined the permissions for the editor in site/blueprints/users/editor.yml:

```auto
title: Editor

permissions:
  access:
    account: true
    panel: true
    site: true
    languages: false
    system: false
    users: false
  files:
    create: false
    changeName: false
    changeTemplate: false
    delete: false
    read: false
    replace: false
    update: false
  languages:
    create: false
    delete: false
  pages:
    access: true
    changeSlug: false
    changeStatus: false
    changeTemplate: false
    changeTitle: false
    create: false
    delete: false
    list: true
    move: false
    duplicate: false
    preview: true
    read: true
    sort: false
    update: false
  site:
    changeTitle: false
    update: false
  user:
    changeEmail: true
    changeLanguage: true
    changeName: true
    changePassword: true
    changeRole: false
    delete: false
    update: false
  users:
    changeEmail: false
    changeLanguage: false
    changeName: false
    changePassword: false
    changeRole: false
    create: false
    delete: false
    update: false

```

The editor should be able to customize an existing calendar entry. This also works:

```auto
title: Kalendereintrag
icon: calendar

options:
  preview: false
  update:
    editor: true
  create:
    editor: true

status:
  draft: true
  listed: true

fields:
  room:
    label: Raum
    type: radio
    options:
      - value: 'Room1'
        text: Room1
      - value: 'Room2'
        text: Room2
  start:
    label: Start
    type: date
    time: false
  end:
    label: Ende
    type: date
    time: false

```

And the editor should be able to create a new calendar entry. Unfortunately, this does not work:

```auto
title: Kalender
icon: calendar

options:
  update:
    editor: true

sections:

  pages:
    type: pages
    label: Einträge
    info: "{{ page.room }}: {{ page.start.toDate("d.m.Y") }} - {{ page.end.toDate("d.m.Y") }} "
    sortBy: start asc
    templates:
      - calendar-entry

```

I have already tried many options, but none of them work. Can anyone help me?  
Best regards

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [March 3, 2024, 5:57pm UTC](https://forum.getkirby.com/t/restricted-users-should-only-be-able-to-create-and-edit-certain-pages/30991/2 "2024-03-03T17:57:59Z")

</div>

> [@ShibaInu](#):
>
> ```auto
> options:
> update:
> editor: true
> 
> ```

This doesn’t do anything, you already defined the relevant permissions in the child blueprint, adding a new calendar entry is not related to updating the parent.

But looks to me as if overwriting general permissions by page permissions doesn’t work as expected (anymore).

---

<div class="post-metadata">

**Author:** ![ShibaInu](https://avatars.discourse-cdn.com/v4/letter/s/bc8723/32.png) [@ShibaInu](https://forum.getkirby.com/u/ShibaInu)\
**Post date:** [March 3, 2024, 10:43pm UTC](https://forum.getkirby.com/t/restricted-users-should-only-be-able-to-create-and-edit-certain-pages/30991/3 "2024-03-03T22:43:58Z")

</div>

Okay, so what do we do now?

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [March 3, 2024, 11:04pm UTC](https://forum.getkirby.com/t/restricted-users-should-only-be-able-to-create-and-edit-certain-pages/30991/4 "2024-03-03T23:04:50Z")

</div>

Take a look at this plugin: [Bouncer | Kirby CMS](https://getkirby.com/plugins/sylvainjule/bouncer)

It handles it via hooks.

---

<div class="post-metadata">

**Author:** ![ShibaInu](https://avatars.discourse-cdn.com/v4/letter/s/bc8723/32.png) [@ShibaInu](https://forum.getkirby.com/u/ShibaInu)\
**Post date:** [March 3, 2024, 11:10pm UTC](https://forum.getkirby.com/t/restricted-users-should-only-be-able-to-create-and-edit-certain-pages/30991/5 "2024-03-03T23:10:56Z")

</div>

Thank you very much. I’ll take a look at that!
