Disable adding new pages (and edit button)

Is this possible? I tried setting pages: false in site.yml but get the following error:

Method KirbyPanelView::__toString() must not throw an exception, caught Error: Call to a member function nextPageUrl() on null

Yes, this is possible, but not via a blueprint setting, but based on user roles using permissions.

What exactly is your use case?

I have a very simple site, without a menu system so I don’t want editors to create any more pages or change the order.

An alternative would be to set a limit and set deleting and status to false.

https://getkirby.com/docs/panel/blueprints/page-settings
https://getkirby.com/docs/panel/blueprints/subpages-settings

thanks I will take a look at permission, I guess I could also hide the buttons with css