mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 04:03:57 -06:00
FIX: TL4 user is not redirected to latest when delete topic (#19967)
Continue of https://github.com/discourse/discourse/pull/19766 When TL4 is allowed to delete topic, they should not be redirected to / after that action.
This commit is contained in:
parent
110c96e6d7
commit
ac4ee1a3d4
@ -471,6 +471,10 @@ const Topic = RestModel.extend({
|
||||
!deleted_by.staff &&
|
||||
!deleted_by.groups.some(
|
||||
(group) => group.name === this.category.reviewable_by_group_name
|
||||
) &&
|
||||
!(
|
||||
this.siteSettings.tl4_delete_posts_and_topics &&
|
||||
deleted_by.trust_level >= 4
|
||||
)
|
||||
) {
|
||||
DiscourseURL.redirectTo("/");
|
||||
|
Loading…
Reference in New Issue
Block a user