You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: