Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

admin is unable to delete presentation #10

Open
lalyos opened this issue Nov 25, 2010 · 0 comments
Open

admin is unable to delete presentation #10

lalyos opened this issue Nov 25, 2010 · 0 comments

Comments

@lalyos
Copy link

lalyos commented Nov 25, 2010

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant