Anyone can delete the paste
vitobotta opened this issue · 5 comments
vitobotta commented
Hi, I just noticed that anyone with the link can delete the paste as there is no restriction at all. Is this intentional?
matze commented
Yes, because there is no authentication mechanism in place. But I could set a cookie to allow deletion only from the browser that made the paste. But I am not sure if that would then require a pesky cookie banner which I'd like to avoid if possible.
vitobotta commented
The cookie would work well I think
matze commented
I am not a lawyer but from what I can tell, purely functional cookies that require a site to function do not imply a cookie banner. So good chance I will start implementing this soon.
matze commented
I've pushed a branch that I will likely merge tomorrow. Works alright so far.