Nodebb: User is able to restore deleted posts

Created on 5 Sep 2016  路  9Comments  路  Source: NodeBB/NodeBB

Please include the following information when submitting a bug report/issue:

  • NodeBB 1.1.2
  • Database mongo
  • Exact steps to cause this issue

    1. global mod deletes message

    2. After that user is able to restore post and edit it

Thank you!

bug enhancement

Most helpful comment

I think what @exomarty is trying to get at is that if a mod or admin deletes a post, that should not allow the author to _un_delete it, as it was probably deleted for a reason (e.g. spam, offensive, etc)

All 9 comments

Was that user the poster? That would be expected behavior currently, maybe purge instead?

Yes. Of course was the poster.
purge is radical. Is important that another mod or admin can check also the post and restore it if needed.
I cant understand that to be a expected behavior

I think what @exomarty is trying to get at is that if a mod or admin deletes a post, that should not allow the author to _un_delete it, as it was probably deleted for a reason (e.g. spam, offensive, etc)

Correct @julianlam

@barisusakli Perhaps "Restore post" should be a privilege too?

I think topic posters should not be allowed to delete, restore or purge their posts. That part should be left to admins/mods.

If delete privilege also meant you could/could not restore posts, I think I'd be ok with that.

Yeah the privilege for delete posts should also apply to restore. This should be a marked as a bug.

If delete privilege also meant you could/could not restore posts, I think I'd be ok with that.

Yeah the privilege for delete posts should also apply to restore. This should be a marked as a bug.

This is already the case. If you remove the delete privilege from registered users they can't delete or restore their posts.

https://github.com/NodeBB/NodeBB/blob/master/src/posts/tools.js#L37-Lundefined

Was this page helpful?
0 / 5 - 0 ratings

Related issues

phit picture phit  路  4Comments

AliCihan picture AliCihan  路  4Comments

BenLubar picture BenLubar  路  3Comments

darKnight0037 picture darKnight0037  路  4Comments

julianlam picture julianlam  路  4Comments