mirror of
https://github.com/mastodon/mastodon.git
synced 2026-09-27 20:12:13 -05:00
Fix moderators being able to issue a warning on moderators of higher position (#40646)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user