discourse/spec
Martin Brennan 93a8e34f47
FIX: Allow user to recover/delete post if they can review the topic (#10273)
To reproduce the initial issue here:

1. A user makes a post, which discourse-akismet marks as spam (I cheated and called `DiscourseAkismet::PostsBouncer.new.send(:mark_as_spam, post)` for this)
2. The post lands in the review queue
3. The category the topic is in has a `reviewable_by_group_id`
4. A user in that group goes and looks at the Review queue, decides the post is not spam, and clicks Not Spam
5. Weird stuff happens because the `PostDestroyer#recover` method didn't handle this (the user who clicked Not Spam was not the owner of the post and was not a staff member, so the post didn't get un-destroyed and post counts didn't get updated)

Now users who belong to a group who can review a category now have the ability to recover/delete posts fully.
2020-07-22 11:57:16 +10:00
..
components FIX: Allow user to recover/delete post if they can review the topic (#10273) 2020-07-22 11:57:16 +10:00
fabricators FEATURE: Allow List for PMs (#10270) 2020-07-20 15:23:49 -06:00
fixtures FEATURE: Parse images in email signatures (#10137) 2020-07-08 15:50:30 +10:00
helpers Fix the build. 2020-06-22 14:50:17 +08:00
import_export FEATURE: Rake task to export groups (#9450) 2020-04-17 14:59:54 -07:00
initializers FIX: We need to skip users with associated reviewables when auto-approving (#9080) 2020-03-02 14:33:52 -05:00
integration DEV: Enable preserve_email_structure_when_styling by default 2020-07-20 10:21:32 +01:00
integrity DEV: Check English locale for errors in CI 2020-06-03 21:54:58 +02:00
jobs FEATURE: Allow group moderators to close/archive topics 2020-07-14 12:36:19 -04:00
lib FEATURE: Add "delete on owner reply" bookmark functionality (#10231) 2020-07-21 10:00:39 +10:00
mailers FIX: Set the lang/xml:lang html attrs in emails (#10218) 2020-07-13 16:39:40 +02:00
models FEATURE: Create logs for Group Moderator changes (#10271) 2020-07-21 14:29:02 -04:00
multisite FIX: invalid urls should not break store.has_been_uploaded? 2020-06-25 15:00:15 +10:00
requests FIX: Typo in `NotificationsController#index` not caught by tests. 2020-07-22 09:22:26 +08:00
script/import_scripts FIX: Change base importer to create new Bookmark records (#9603) 2020-05-01 11:34:55 +10:00
serializers FEATURE: Allow List for PMs (#10270) 2020-07-20 15:23:49 -06:00
services FEATURE: Create logs for Group Moderator changes (#10271) 2020-07-21 14:29:02 -04:00
support FIX: Redirects containing Unicode usernames didn't work 2020-06-08 10:26:29 +02:00
tasks FEATURE: Add uploads:batch_migrate_from_s3 task to limit total posts migrated at once (#9933) 2020-06-04 09:48:11 +10:00
views/omniauth_callbacks FEATURE: Use full page redirection for all external auth methods (#8092) 2019-10-08 12:10:43 +01:00
rails_helper.rb Always require pry gems in rails_helper 2020-06-17 10:08:53 +10:00
swagger_helper.rb DEV: Add rswag to aid in api documention (#9546) 2020-04-27 16:40:07 -06:00