swinger icon indicating copy to clipboard operation
swinger copied to clipboard

admin is unable to delete presentation

Open lalyos opened this issue 15 years ago • 0 comments

I was trying to delete test/dummy presentations created by someone else, and got the following message: {"error":"forbidden","reason":"Sorry, you can only delete your own work."} By checking the desugn document's validate_doc_update function turns out, that admin can edit any presentation but can't delete any.

this function needs a new if just under the '// deleting' comment:

} else if (newDoc._deleted) { // deleting if (is_admin) { return true; } cheers, lalyos

lalyos avatar Nov 25 '10 10:11 lalyos