Re-allow create option

Hi there.

I have an editor user role. By default editors should not be allowed to create any pages.

editor.yml

permissions:
  pages:
    changeSlug: false
    changeStatus: false
    changeTemplate: false
    changeTitle: false
    create: false
    delete: false
    duplicate: false
    preview: true
    read: true
    sort: false
    update: false

I now want to re-enable the create option on certain pages (for everyone). I thought I could do so like this:

articles.yml

options:
  create: true

Unfortunately, this does not seem to have any effect, the editor still can’t create pages. Any idea what I am doing wrong?

Try enabling it for the editor role specifically:

options:
  create: 
    editor: true

Tried that, doesn’t work either, unfortunately.

Then you probably cannot override the user yaml settings and would have to turn the logic around, i.e. generelly allow creating pages and disallow it on a per blueprint setting.

Seems like it. Feels weird though, since I am able to do it with other options like update.

If it works for other options, then it should actually work for create as well. I’m not sure if this is supposed to work or not.

Yes, that’s what I’m thinking.

options:
  update: true

This definitely works and re-enables the update option as expected. Maybe someone from the team can figure this out and let us know if it is intended or not.

Yes, it is indeed not possible at the moment and doesn’t seem to be so easy to solve. See also this issue:

So for the moment, there is no other way than what @pixelijn already pointed out.

Thanks for clarifying @texnixe , will use @pixelijn ’s solution for the time being.

Mmh, actually turning the logic around does not work either. Seems like there is no way of tackling this at the moment other than maybe with a hook.

The Github issue is about the “Add” button still being visible and the user only getting a message about not being allowed to create pages after filling out the form. However, with the following setup while logged in as an editor, I don’t even get that warning and am actually able to create pages.

editor.yml

permissions:
  pages:
    create: true
articles.yml

options:
  create:
    admin: true
    editor: false