Open hdodov opened 4 years ago
Correct me if I got it wrong, doesn't a template based solution solve your needs? 🤔
/site/blueprints/pages/blog.yml
title: Blog
options:
read:
admin: true
editor: false
@afbora I didn't know about that. It appears to get the job done, but I have a lot of templates - around 30-40. Configuring all of them isn't going to be very pleasant. Besides - what happens if I have two pages of the same template, yet I want only one of them to be editable?
Having the ability to restrict access on a per-template basis is definitely useful, but specifying page IDs is as well. Perhaps the biggest difference is you can disable all access with *: false
Related with https://github.com/getkirby/ideas/issues/177 (may be same feature, i'm not sure)
Problem
We have a site where an editor writes articles in a
blog
page. Obviously, we have aneditor
user role, but that user has access to all pages in the site, not just the blog.Solution
The user blueprint could accept a
permissions.content
array that configures access: