Closed j2l closed 1 year ago
Thank you for the PR. Merged!
You're welcome, thank YOU @jkdoshi for this project. Could you let me know about the licence? See https://github.com/spinspire/pocketbase-sveltekit-starter/issues/18 Have a great Friday and a wonderful week-end!
When you're not the author of a post you can't edit and delete and you get a (too) broad error message:
The requested resource wasn't found
If you test for each record using
$currentUser.id == post.user
, you can remove edit and delete links :) Hope it helps others understand about the SK logic.I'm learning about Pocketbase, maybe there's a clever way.