This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/assets/javascripts
Isaac Janzen e5349e43af
DEV: Update group moderator behavior to better mimic staff (#19618)
# Context
When a topic is reviewable by a group we give those group moderators some admin abilities including the ability to delete a topic.

# Problem
There are two main problems:

1. Currently when a group moderator deletes a topic they are redirected to root (not the same for staff)
2. Viewing the categories deleted topics (`c/foo/1/?status=deleted`) does not display the deleted topic to the group moderator (not the same for staff).

# Fix
If the `deleted_by` user is part a group that matches the `reviewable_by_group` on a topic then don't redirect. This is the default interaction for staff to give them the ability to do things like restore the topic in case it was accidentally deleted.

To render the deleted topics as expected for the group moderator I am utilizing [the guardian scope of `guardian.can_see_deleted_topics?` for said category](https://github.com/discourse/discourse/pull/19618/files#diff-288e61b8bacdb29d9c2e05b42da6837b0036dcf1867332d977ca7c5e74a44297R802-R803)
2022-12-29 10:07:03 -06:00
..
admin Build(deps): Bump @babel/core in /app/assets/javascripts (#19595) 2022-12-28 14:04:13 +00:00
bootstrap-json DEV: Fix multiple set-cookie through Ember-CLI proxy (#19316) 2022-12-05 15:01:55 +00:00
confirm-new-email DEV: Update linting setup and fix issues (#17345) 2022-07-06 10:37:54 +02:00
dialog-holder DEV: Apply prettier to hbs files 2022-12-28 13:11:12 +00:00
discourse DEV: Update group moderator behavior to better mimic staff (#19618) 2022-12-29 10:07:03 -06:00
discourse-common Build(deps): Bump @babel/core in /app/assets/javascripts (#19595) 2022-12-28 14:04:13 +00:00
discourse-ensure-deprecation-order DEV: Silence 3.x deprecations 2022-07-19 10:00:59 +01:00
discourse-hbr Build(deps): Bump @babel/core in /app/assets/javascripts (#19595) 2022-12-28 14:04:13 +00:00
discourse-plugins Build(deps): Bump @babel/core in /app/assets/javascripts (#19595) 2022-12-28 14:04:13 +00:00
discourse-widget-hbs Build(deps): Bump @babel/core in /app/assets/javascripts (#19595) 2022-12-28 14:04:13 +00:00
docs DEV: enforces eslint’s curly rule to the codebase (#10720) 2020-09-22 16:28:28 +02:00
ember-addons DEV: Remove ember-addons (#9559) 2020-04-28 10:14:49 -04:00
ember-cli-progress-ci DEV: Add progress output in CI during ember-cli build (#17977) 2022-08-17 22:39:52 +01:00
locales FEATURE: Add Croatian language (#17130) 2022-06-18 00:18:22 +02:00
pretty-text Build(deps): Bump @babel/core in /app/assets/javascripts (#19595) 2022-12-28 14:04:13 +00:00
select-kit Build(deps): Bump @babel/core in /app/assets/javascripts (#19595) 2022-12-28 14:04:13 +00:00
truth-helpers Build(deps): Bump @babel/core in /app/assets/javascripts (#19595) 2022-12-28 14:04:13 +00:00
wizard Build(deps): Bump @babel/core in /app/assets/javascripts (#19595) 2022-12-28 14:04:13 +00:00
.licensee.json DEV: Have licensee check xmldom license (#18840) 2022-11-02 11:51:11 -04:00
.npmrc DEV: Prevent npm usage (#13945) 2021-08-04 22:04:58 +02:00
discourse-js-processor.js DEV: Introduce minification and source maps for Theme JS (#18646) 2022-10-18 18:20:10 +01:00
handlebars-shim.js FIX: It seems sometimes shims are evaluated by older JS engines (#11813) 2021-01-22 10:41:01 -05:00
package.json DEV: Make dialog-holder a monorepo package (#19051) 2022-11-16 16:43:45 +01:00
polyfills.js DEV: Add polyfill for String.prototype.replaceAll (#16301) 2022-03-28 17:18:56 +01:00
service-worker.js.erb FEATURE: Replyable chat push notifications (#18973) 2022-11-11 12:30:21 -03:00
yarn.lock Build(deps): Bump @babel/core in /app/assets/javascripts (#19595) 2022-12-28 14:04:13 +00:00