Hi!
I’ve been working on a commenting system, following instructions from this (german) article https://netzleben.com/ein-kommentarsystem-fuer-kirby
So far it’s been working great, it didn’t take a lot of work to make the code from the tutorial Kirby-3-ready. The comments are stored as YAML in a structure field and I’m using a page controller to update the field when the user clicks on submit in a basic html form. Now, the Idea is that any visitor should be able to leave comments without having to register. Locally on my mac this is working fine, but on a test server I get an error message (“you are not allowed to update [page]”), so today was the day I looked into user permissions for the first time.
I copied the editor permissions from the docs to /site/blueprints/users/visitor.yml
(would this be the correct path?) but it didn’t work, so I set
$kirby = kirby();
$kirby->impersonate('kirby');
in the page controller. This is doing the trick, but I’m unsure if there’d be any security implications with this method… How should I proceed? Why are user permissions via blueprint not working?
Thanks for your help!