Skip to content

admin is unable to delete presentation #10

@lalyos

Description

@lalyos

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions