swinger
swinger copied to clipboard
admin is unable to delete presentation
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