NocturnalRage / pyangelo.com

Python Graphics Programming in the Browser
2 stars 3 forks source link

The option to delete a file will only appear if you are the owner of the sketch #88

Closed s1050613 closed 3 years ago

s1050613 commented 3 years ago

Pretty small compared to the behemoth of the other one! I’ve used an online PHP shell (oh yes I use an iPad BTW) to test the PHP and it works, despite the very confusing syntax. I’ve tested the JS with what the meta tag will look like and it functions correctly for when the meta is true and when it’s false. Still, there may be typos!

Edit: Can’t find the button to link to the issue; I believe I have to put a keyword in the description (which I believe is this). So: Fixes #87

pingskills commented 3 years ago

Hi, in the file views/sketch/sketch-editor.html.php there is already an attribute which tests if the client is the owner:

If we use this then we don't need to update header.html.php

s1050613 commented 3 years ago

Ah, yes! Wonder why I didn’t think of it being already in the code. I’ll fix it up now.

s1050613 commented 3 years ago

There; that should be it.