Fix moderators being able to issue a warning on moderators of higher position (#40646)

This commit is contained in:
Claire committed 2026-09-24 16:29:39 +02:00
1 parent 79206902e9
commit a0b44d446f
1 file changed
+1
+1
View File
@@ -43,6 +43,7 @@ class Admin::BaseAction
private
def process_strike!(action = type)
authorize(target_account, :warn?)
@warning = target_account.strikes.create!(
account: current_account,
report: report,